Looped program to allow for finding of multiple primes