Description Usage Arguments Details Value Examples
Tests if a given number is prime and returns TRUE or FALSE
1 | isPrime(v)
|
v |
the number to be tested for primality |
Tests for the primality of any positive integer using the fact that all primes except 2 and 3 can be expressed as 6k-1 or 6k+1 for integer k.
logical TRUE or FALSE
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.