There was an error while loading. Please reload this page.
Find the prime factors and respective exponents of a number.
Similar: properDivisors, primeFactors, primeExponentials, isPrime.
function primeExponentials(x) // x: a number
const xmath = require('extra-number'); xmath.primeExponentials(1); // → [] xmath.primeExponentials(9); // → [[3, 2]] xmath.primeExponentials(63); // → [[3, 2], [7, 1]] xmath.primeExponentials(605); // → [[5, 1], [11, 2]] xmath.primeExponentials(53); // → [[53, 1]]