I'm Feeling Lucky
RSS / Atom
perl -wle 'print "isPrime" if (1 x shift) !~ /^1?$|^(11+?)\1+$/' [number]
(by Neil Kandalgaonkar, via kottke)
Commenting is closed for this article.