changed varible name: JPRIME to isPrime