Learn R Programming

primefactr (version 0.1.1)

IsPrime: Is a prime number?

Description

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

Usage

IsPrime(n)

Arguments

n

A positive integer.

Value

A boolean.

Examples

Run this code
# NOT RUN {
IsPrime(1)         # FALSE
IsPrime(5)         # TRUE
IsPrime(59999999)  # TRUE
# }

Run the code above in your browser using DataLab