pub fn aliquot_sum(n: u64) -> u64
Return the aliquot sum of a positive integer n
,
that is, the sum of all of n
's proper divisors.
Panics if n
is zero.
use reikna::aliquot::aliquot_sum;
assert_eq!(aliquot_sum(28), 28);
assert_eq!(aliquot_sum(29), 1);