Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

aliquot_sum

Calculates the aliquot sum of a given number.

Arguments

  • number - The number to calculate the aliquot sum for.

Returns

  • felt252 - The aliquot sum of the input number.

Fully qualified path: alexandria_math::aliquot_sum::aliquot_sum

pub fn aliquot_sum(number: u128) -> u128