fixes generate primes
completes project 3