-
Notifications
You must be signed in to change notification settings - Fork 0
primeExponentials
Subhajit Sahu edited this page Aug 8, 2022
·
1 revision
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]]