IsPrime: Is a prime number?

Description Usage Arguments Value Examples

Description

Is n a prime number?

Usage

1

Arguments

n

A positive integer.

Value

A boolean.

Examples

1
2
3
IsPrime(1)         # FALSE
IsPrime(5)         # TRUE
IsPrime(59999999)  # TRUE


Search within the primefactr 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.