Determines whether a number is a superior antiprime: for some positive ε, its factor count divided by its ε-th power
is at least as large as any other positive integer's.
Parameters
n: number
A non-zero safe integer.
Returns boolean
true if the absolute value of n is a superior antiprime; otherwise false.
Remarks
Also exported as isSuperiorHighlyComposite. The first superior antiprime is 2: 1 is excluded by convention, as in
OEIS A002201, even though it is the first antiprime. Every superior antiprime is an antiprime. Negative numbers are
judged by their absolute value.
Throws
TypeError If n is not a number.
Throws
RangeError If n is zero, not an integer, or outside the safe integer range.
Since
2.1.0
Example
isSuperiorAntiprime(5040); // true isSuperiorAntiprime(-60); // true isSuperiorAntiprime(24); // false, though 24 is an antiprime isSuperiorAntiprime(1); // false
Determines whether a number is a superior antiprime: for some positive ε, its factor count divided by its ε-th power is at least as large as any other positive integer's.