PHP found 41538 primes up to 500000 in 0.3622739315033 seconds.