perl -wle 'print "Prime" if (1 x shift) !~ /^1?$|^(11+?)\1+$/' [num] [download]
In reply to Re: Testing for prime-ness, the silly way by hopes in thread Testing for prime-ness, the silly way by Dedalus