finding primes works