Added java isPrime