adjusted the for loop in the primes checking function, which had an error.