XP is just a number | |
PerlMonks |
Re: Prime Number Finderby Anonymous Monk |
on Feb 20, 2002 at 13:03 UTC ( [id://146564]=note: print w/replies, xml ) | Need Help?? |
Just a thought, but if you were to increment the first for loop by 2, (primes can't be even with the exception of 0 and 2) you only have to calculate half the iterations, making it twice as fast
In Section
Cool Uses for Perl
|
|