Changing local variable JPRIME to isPrime