isPrime

Checks whether a given number is a prime number.

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

Return

true if the number is prime, false otherwise.