PHP found 41538 primes up to 500000 in 0.31435704231262 seconds.