is_prime | R Documentation |
This functions checks whether a number is, or numbers in a vector are prime numbers.
is_prime(x)
x |
An integer, or a vector of integers. |
TRUE
for each prime number in x
, FALSE
otherwise.
is_prime(89)
is_prime(15)
is_prime(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.