IsPrime: Is a prime number?

Description Usage Arguments Value Examples

View source: R/primes.R

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

primefactr documentation built on May 29, 2017, 9:24 p.m.