is.prime: Prime Numbers

View source: R/is.prime.R

is.primeR Documentation

Prime Numbers

Description

Test whether number is a prime number.

Usage

is.prime(n, verbose = FALSE)

Arguments

n

the number to check.

verbose

whether to report the smallest divisor.

Value

Logical specifying whether number is a prime number.

See Also

primes in the sfsmisc package.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.