set num_primes to start at 1