is_prime


is_prime(n)
      

Return true if the number n is a prime number, false otherwise. Raise an error if n is not a number.

Examples:


is_prime(10)
// false
is_prime(10+1)
// true
      

Also see:

is_odd
is_even
is_negative
is_positive


Core Module Index | Contents