Skip to main content

Timeline for Is this number a prime?

Current License: CC BY-SA 4.0

18 events
when toggle format what by license comment
Oct 30 at 18:05 history edited Deadcode CC BY-SA 4.0
provide a TIO demonstration of the exception being thrown on the is-prime regex, too
Oct 30 at 16:33 history edited Deadcode CC BY-SA 4.0
fix missing close-parenthesis in explanation
Oct 26 at 8:32 history edited Deadcode CC BY-SA 4.0
after further research, the conditions for the out-of-bounds error are better understood
Oct 25 at 20:37 history edited Deadcode CC BY-SA 4.0
demonstrate regex101 throwing error; fix latent bug in TIO PowerShell script (it worked in TIO but not later versions of PowerShell)
Oct 25 at 18:18 history edited Deadcode CC BY-SA 4.0
show a commented view of the `(?<5-1>\1)`-avoiding patch
Oct 25 at 18:07 history edited Deadcode CC BY-SA 4.0
turns out the `(?<5-1>\1)` really is buggy like I thought it should be, except for some reason it works in some .NET implementations.
May 3, 2023 at 6:40 history edited Deadcode CC BY-SA 4.0
-15 bytes on binary version
May 3, 2023 at 6:33 history edited Deadcode CC BY-SA 4.0
-18 bytes on binary version
May 3, 2023 at 6:27 history edited Deadcode CC BY-SA 4.0
-38 bytes on binary version, using some of the same tricks already used on the decimal version
May 3, 2023 at 6:11 history edited Deadcode CC BY-SA 4.0
-14 bytes, and improve the commenting
May 3, 2023 at 3:17 comment added noodle person This is witchcraft!
May 3, 2023 at 2:27 history edited Deadcode CC BY-SA 4.0
-26 bytes
May 3, 2023 at 0:15 history edited Deadcode CC BY-SA 4.0
-4 bytes
May 2, 2023 at 1:11 history edited Deadcode CC BY-SA 4.0
adapt the bounded regex to the 1-255 specification of this challenge
Apr 29, 2023 at 2:21 history edited Deadcode CC BY-SA 4.0
added 48 characters in body
Apr 28, 2023 at 23:33 history edited Deadcode CC BY-SA 4.0
Improve and flesh out the framing text, and describe the binary version's internal numeric represenation
Apr 28, 2023 at 15:56 history edited Deadcode CC BY-SA 4.0
add note about backtracking
Apr 25, 2023 at 22:09 history answered Deadcode CC BY-SA 4.0