Simon Willison’s Weblog

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