get.primes | R Documentation |
Provides a vector of a specified number of smallest primes from the internal table of the package.
get.primes(n)
n |
The required number of primes. Should be at most 100 000. |
The package contains an internal table of the smallest 100 000 primes,
which may be used in torus
algorithm.
Vector of min(n, 100000)
smallest primes.
torus
p <- get.primes(20)
torus(5,dim=10,prime=p[11:20])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.