Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

is_armstrong_number

Armstrong Number Algorithm.

Arguments

  • num - The number to be evaluated.

Returns

  • bool - A boolean value indicating is Armstrong Number.

Fully qualified path: alexandria_math::armstrong_number::is_armstrong_number

pub fn is_armstrong_number(mut num: u128) -> bool