PHP found 41538 primes up to 500000 in 0.38072204589844 seconds.