Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for The program that will find the next prime number

Current License: CC BY-SA 4.0

18 events
when toggle format what by license comment
Oct 30, 2024 at 3:50 history edited Deadcode CC BY-SA 4.0
-2 bytes on .NET version
Oct 30, 2024 at 3:29 history edited Deadcode CC BY-SA 4.0
-4 bytes on .NET version
Oct 30, 2024 at 2:53 history edited Deadcode CC BY-SA 4.0
-3 bytes on PCRE2 version
Oct 30, 2024 at 2:20 history edited Deadcode CC BY-SA 4.0
add link for non-zero-handling PCRE2 version; I think I got the size wrong as being 5 bytes less (I think it was only 3 bytes less), but here's one that's 4 bytes less
Oct 30, 2024 at 1:19 history edited Deadcode CC BY-SA 4.0
-6 bytes on .NET version
Oct 30, 2024 at 0:39 history edited Deadcode CC BY-SA 4.0
-5 bytes on PCRE2 version
Oct 30, 2024 at 0:08 history edited Deadcode CC BY-SA 4.0
-2 bytes on .NET version
Apr 14, 2023 at 20:34 comment added Bbrk24 Interesting, thanks!
Apr 14, 2023 at 20:33 comment added Deadcode @Bbrk24 The reason I use emojis for those output methods is to differentiate them from output via the length of a string. Depending on the challenge, it can be a very different, or sometimes even impossible, to output via the length of a string instead of the count of something. Trivially it's impossible to output a number larger than the input without using a counting-style output, but also there are ones like totient function in ECMAScript where it's much more complicated and interesting to output via string length than some type of count.
Apr 14, 2023 at 20:32 comment added Deadcode @Bbrk24 Except for rabbit, they're animals documented to be able to count. Bee 🐝 is output via number of matches, because counting that is fairly lightweight to implement in most languages (bees are small). Elephant 🐘 is output via capture count, because that is in a way kind of overkill (elephants are big), since in .NET a capture stack contains the contents of its captures, which is potentially much more information than just the number of captures. Rabbit πŸ‡ is output via number of ways it can match, because rabbits multiply (breed), and this output method is great at multiplying.
Apr 14, 2023 at 20:13 comment added Bbrk24 What do the emojis mean?
Apr 14, 2023 at 19:17 history edited Deadcode CC BY-SA 4.0
use elephant emoji to indicate output via capture count, as I've established since making this post (there are 4 more of these to do, but I'm spreading out the edits)
Jul 26, 2022 at 20:02 history edited Deadcode CC BY-SA 4.0
add .NET version
Jul 25, 2022 at 21:19 history edited Deadcode CC BY-SA 4.0
-3 bytes
Jul 25, 2022 at 21:05 history edited Deadcode CC BY-SA 4.0
add note about the use of molecular lookahead
Jul 25, 2022 at 20:45 history edited Deadcode CC BY-SA 4.0
added 66 characters in body
Jul 25, 2022 at 20:38 history edited Deadcode CC BY-SA 4.0
added 2 characters in body; edited body; deleted 59 characters in body
Jul 25, 2022 at 20:33 history answered Deadcode CC BY-SA 4.0
toggle format

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /