is.prime: is.prime

Description Usage Arguments Details Value Examples

View source: R/isprime.R

Description

is.prime check the given number is prime or not

Usage

1
is.prime(num)

Arguments

num

integer

Details

if the given number is divisible any number other than 1 and itself it return NULL. otherwise TRUE.

Value

TRUE or FALSE

Examples

1
2
3
4
is.prime(3)
#TRUE
is.prime(21)
#FALSE

HadamardR documentation built on April 14, 2020, 7:01 p.m.