various ways to find primes