perfect_numbers

Algorithm to determine all the perfect numbers up to a maximum value

Arguments

  • max - The maximum value to check for perfect numbers.

Returns

  • Array - An array of perfect numbers up to the max value.

Fully qualified path: alexandria_math::perfect_number::perfect_numbers

#![allow(unused)]
fn main() {
pub fn perfect_numbers(max: u128) -> Array<u128>
}