added an OR statement to the isPrime functions