in reply to Re: Prime Number Finder
in thread Prime Number Finder
"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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Prime Number Finder
by Anonymous Monk on Mar 07, 2005 at 14:41 UTC | |
by tall_man (Parson) on Mar 08, 2005 at 00:04 UTC | |
Re: Re: Re: Prime Number Finder
by The_Rev (Acolyte) on Feb 20, 2002 at 18:40 UTC |
In Section
Cool Uses for Perl