|
|
| No such thing as a small change | |
| PerlMonks |
Re: Primes. Again.by Codon (Friar) |
| on Apr 26, 2006 at 07:46 UTC ( #545717=note: print w/ replies, xml ) | Need Help?? |
|
For a really great Primes solution (short, elegant, fast), check out this article by merlyn. It starts with a very basic algorithm, then progresses on to a vector seive. At that point, it looses me in how it actually works, but that didn't stop me from borrowing it to make a program to color a recent Foxtrot comic strip. :-)
Ivan Heffner Sr. Software Engineer, DAS Lead WhitePages.com, Inc.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||