Added #isPrime functionality