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.24.3. This function has been downloaded 61 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 directly requires the following function which is included automatically:

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