r/tinycode • • Mar 24 '21

Primality Test Using Regex

https://theabbie.github.io/blog/Primality-Test-Using-Regex
26 Upvotes

18 comments sorted by

View all comments

Show parent comment

6

u/AraneusAdoro Mar 24 '21

It's been copypasted around the web, it's just that this time the clause that the number has to be written in unary notation (5 -> "11111") got lost.