Archive for date: July 23, 2010

Primality testing with Perl regexs

July 23, 2010 | Computer Science | By: Mark VandeWettering

Okay, here’s a little pet peeve of mine. Somebody brought up that it’s possible to do primality testing using Perl regular expressions. This has been kicking around for a while, I’m not sure who originated the idea, but you can find links to it with a Google search. As an example, consider the Perl one […]