Determines whether the exponents of a prime factorisation never increase from smaller to larger primes.
A prime factorisation, such as the result of primeFactors.
true if each exponent is no larger than the one before it; otherwise false.
true
false
This is one of the tests every antiprime candidate passes. The empty factorisation of 1 passes trivially.
TypeError If pf is not an array of objects with numeric factor and exponent properties.
TypeError
pf
factor
exponent
RangeError If pf is not a prime factorisation: ascending distinct primes with positive integer exponents.
RangeError
1.0.0
isPrimeExponentsReducing(primeFactors(12)); // true: 2² × 3isPrimeExponentsReducing(primeFactors(18)); // false: 2 × 3² Copy
isPrimeExponentsReducing(primeFactors(12)); // true: 2² × 3isPrimeExponentsReducing(primeFactors(18)); // false: 2 × 3²
Determines whether the exponents of a prime factorisation never increase from smaller to larger primes.