is_prime(n)
Return true if the number n is a prime number, false otherwise. Raise an error if n is not a number.
true
n
false
is_prime(10) // false is_prime(10+1) // true
Core Module Index | Contents