"but I just thought of a better way to calculate primes"Did you actually "just think that up" cause it looks quite a bit like one that abigail wrote:
perl -wle 'print "Prime" if (1 x shift) !~ /^1?$|^(11+?)\1+$/' [number +]
-Blake
In reply to Re: Re: Prime Number Finder
by blakem
in thread Prime Number Finder
by munchie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |