Test and find antiprimes (highly composite numbers): positive integers with more factors than any smaller positive
integer. Also test and find superior antiprimes (superior highly composite numbers), a rarer subset of the antiprimes.
Remarks
Every function and the Antiprime class judge a negative number by its absolute value, so isAntiprime(-12)
is true. Inputs must be within the safe integer range (up to Number.MAX_SAFE_INTEGER).
Test and find antiprimes (highly composite numbers): positive integers with more factors than any smaller positive integer. Also test and find superior antiprimes (superior highly composite numbers), a rarer subset of the antiprimes.
Remarks
Every function and the Antiprime class judge a negative number by its absolute value, so
isAntiprime(-12)istrue. Inputs must be within the safe integer range (up toNumber.MAX_SAFE_INTEGER).