Make Primes safe to use concurrently.