isPrime()
Determines if a number is a prime integer.
This function is valid in v2.1.0 to v2.23.0. This function has been downloaded 29 times.true
if num
is a positive integer that is only divisible by itself and 1
. Otherwise false
.This function directly requires the following function which is included automatically:
isSafeInt()
-9007199254740991
and 9007199254740991
.
This function is directly required by the following function:
isComposite()
1
and itself.