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
In Section
Seekers of Perl Wisdom