changed isPrime function to use null