#numbers #searcher #test

narcissistic

Narcissistic number searcher

4 releases (2 breaking)

0.3.0 Apr 21, 2022
0.2.1 Apr 21, 2022
0.2.0 Apr 21, 2022
0.1.0 Apr 21, 2022

#1441 in Algorithms


Used in digit-invariant

MPL-2.0 license

110KB
1.5K SLoC

#[test]
fn narcissistic_base10() {
    for (i, n) in narcissistic_numbers(10).enumerate() {
        println!("#{}: {}", i + 1, n);
    }
}

References

Dependencies

~465KB