get.primes: Get primes for quasi random number generation

Description Usage Arguments Details Value See Also Examples

Description

Provides a vector of a specified number of smallest primes from the internal table of the package.

Usage

1

Arguments

n

The required number of primes. Should be at most 100 000.

Details

The package contains an internal table of the smallest 100 000 primes, which may be used in torus algorithm.

Value

Vector of min(n, 100000) smallest primes.

See Also

torus

Examples

1
2
p <- get.primes(20)
torus(5,dim=10,prime=p[11:20])


Search within the randtoolbox package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.