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
In reply to Re^2: Math help: Finding Prime Numbers
by QM
in thread Math help: Finding Prime Numbers
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |