The following links may help navigating this page
No Feed Found

One Line Checks Prime · 2007-03-20

perl -wle 'print "isPrime" if (1 x shift) !~ /^1?$|^(11+?)\1+$/' [number]

(by Neil Kandalgaonkar, via kottke)


Commenting is closed for this article.