added isPrime