IsPrime: Is a prime number?

Description Usage Arguments Value Examples

View source: R/primes.R

Description

Is n a prime number? You can see what is a prime number there.

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 19, 2018, 5:04 p.m.