isPrime even more improved