isComposite()

Determines if a number is a positive integer that is divisible by other integers apart from 1 and itself.

This function is valid in v2.1.0 to v2.14.0. This function has been downloaded 44 times.

Parameter

{number} num
Number to be tested.

Returns

{boolean}
true if num is divisible by another integer other than 1 and itself, otherwise false.

Required Function

This function requires the following function which is included automatically:

  • isPrime()
    Determines if a number is a prime integer.