http://www.perlmonks.org?node_id=146564


in reply to Prime Number Finder

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