Function aoc::year2018::day19::divisor_sum
source ยท fn divisor_sum(n: u32) -> u32
Expand description
Returns the sum of the divisors of an integer n
, including 1 and n
itself.
For example 20 => 1 + 2 + 4 + 5 + 10 + 20 = 42
.