Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Primes. Again.

by Codon (Friar)
on Apr 26, 2006 at 07:46 UTC ( #545717=note: print w/replies, xml ) Need Help??


in reply to Primes. Again.

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.

Replies are listed 'Best First'.
Re^2: Primes. Again.
by inman (Curate) on Apr 26, 2006 at 08:20 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://545717]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-11-21 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (310 votes). Check out past polls.

    Notices?