fixed isPrime being named is_prime and made isPrime take a const pointer