isPrimes checks whether or not a number is prime

isPrime(value)

Arguments

value

A integer.

Value

Boolean.

Complexity

This function has the following complexity O((n))

Examples

isPrime(2)
#> [1] TRUE
isPrime(4)
#> [1] FALSE
isPrime(13)
#> [1] TRUE