Simon Willison’s Weblog

Subscribe

Primality regex. A regular expression that can identify prime numbers. Unsurprisingly, this one comes from the Perl community.