method isPrime() update 2