Changed parameters in isPrime()