Determines if a number is a prime integer.

This function is valid in v2.1.0 to v2.20.0. This function has been downloaded 22 times.


{number} num
Number to be tested.


true if num is a positive integer that is only divisible by itself and 1. Otherwise false.

Required Function

This function requires the following function which is included automatically:

  • isSafeInt()
    Determines if the argument that is passed in is an integer in the range of -9007199254740991 and 9007199254740991.