Just another Perl shrine | |
PerlMonks |
Re: Find prime number between 1 to 1000000by si_lence (Deacon) |
on Jul 29, 2009 at 14:18 UTC ( [id://784241]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|