in reply to Re: Math help: Finding Prime Numbers
in thread Math help: Finding Prime Numbers

perl -le 'print "PRIME" if (1 x shift) !~ /^(11+)\1+$/' $number
...but slow...It also tries composite factors that have already been ruled out.

-QM
--
Quantum Mechanics: The dreams stuff is made of