Made primes faster version.