Made isPrime take a const pointer.