isPrime() function has been added