Finished next_prime. Prints primes separated by spaces until interrupted