Description Usage Arguments Details Value References See Also Examples
An inefficient, brute-force algorithm to assess whether or not an integer is prime.
1 | prime(n)
|
n |
The integer. |
The function assumes that n
is a positive integer.
The function returns a logical object that is TRUE if the integer is prime.
Jones, O.D., R. Maillardet, and A.P. Robinson. 2009. An Introduction to Scientific Programming and Simulation, Using R. Chapman And Hall/CRC.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.