A regular expression to check for prime numbers (2007)(noulakaz.net)
331 points by tambourine_man | 86 comments
A 2007 blog post explaining how the Perl regular expression /^1?$|^(11+?)\1+$/ checks whether a number is prime using unary representation.
