Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

is_perfect_number

Algorithm to determine if a number is a perfect number

Arguments

  • num - The number to be checked.

Returns

  • bool - True if num is a perfect number, false otherwise.

Fully qualified path: alexandria_math::perfect_number::is_perfect_number

pub fn is_perfect_number(num: u128) -> bool