Checks if a number is a prime number.
The number to check.
true if the number is prime, otherwise false.
true
false
isPrime(7); // trueisPrime(10); // false Copy
isPrime(7); // trueisPrime(10); // false
Checks if a number is a prime number.