We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Sum all proper divisors of a number.
Similar: properDivisors, aliquotSum, isPrime.
function aliquotSum(x) // x: a number
const xmath = require('extra-math'); xmath.aliquotSum(6); // → 6 (1+2+3) xmath.aliquotSum(1); // → 0 xmath.aliquotSum(0); // → 0 xmath.aliquotSum(-24); // → 36 (1+2+3+4+6+8+12)
There was an error while loading. Please reload this page.