import primes function