Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Find prime number between 1 to 1000000

by si_lence (Deacon)
on Jul 29, 2009 at 14:18 UTC ( #784241=note: print w/replies, xml ) Need Help??


in reply to Find prime number between 1 to 1000000

If you need to check a lot of numbers it might be efficient to precalculate all primes and load them in memory. Then check against this list.
cheers, si_lence
  • 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://784241]
help
Chatterbox?
[Corion]: Weird. HTML::Selector:: XPath is on v0.22 on search.cpan.org but v0.20 on metacpan.org - I wonder what part of the pipeline I have to kick; most likely the metacpan indexer...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2017-03-23 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (286 votes). Check out past polls.