Added a comment to the isPrime method