Adding primes python utility