Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Find prime number between 1 to 1000000

by kyle (Abbot)
on Jul 29, 2009 at 14:47 UTC ( #784252=note: print w/replies, xml ) Need Help??


in reply to Find prime number between 1 to 1000000

I agree with the other monks who have suggested the Sieve of Eratosthenes. It is The Way to find all prime numbers between 1 and some upper limit.

For another discussion of prime finding, see ulam's spiral too slow

  • Comment on Re: Find prime number between 1 to 1000000

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://784252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-09-28 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (517 votes). Check out past polls.