isprime: Tests whether a given value n is prime with a naive test.

Description Usage Arguments Value References Examples

Description

A prime number is defined as a positive integer, n > 1 that has no positive divisors other than 1 and itself.

Usage

1

Arguments

n

Value to test

Value

TRUE if n is prime, FALSE otherwise

References

Weisstein, Eric W. "Prime Number." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/PrimeNumber.html

Examples

1
2

aschleg/numberr documentation built on May 14, 2019, 10:31 a.m.