isPrime working