is.prime {HadamardR}R Documentation

is.prime

Description

is.prime check the given number is prime or not

Usage

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

is.prime(3)
#TRUE
is.prime(21)
#FALSE

[Package HadamardR version 1.0.0 Index]