PHP found 41538 primes up to 500000 in 0.39635300636292 seconds.