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

IsPrime(n)

Arguments

n

A positive integer.

Value

A boolean.

Examples

IsPrime(1) # FALSE
#> [1] FALSE
IsPrime(5) # TRUE
#> [1] TRUE
IsPrime(59999999) # TRUE
#> [1] TRUE