isPrime
isPrime(x)
Test whether a value is prime: has no divisors other than itself and one.
Try it yourself:
$1 | isPrime(3)
| |
$2 | isPrime(-2)
| |
$3 | isPrime([2, 17, 100])
|
Test whether a value is prime: has no divisors other than itself and one.
Try it yourself:
$1 | isPrime(3)
| |
$2 | isPrime(-2)
| |
$3 | isPrime([2, 17, 100])
|