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