Skip to main content

Crate narcissistic

Crate narcissistic 

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

§References

  • https://arxiv.org/pdf/2008.08187.pdf

Structs§

NarcissisticNumber
Representation of a narcissistic number.
NarcissisticSearcher
A narcissist number searcher

Constants§

BASE2
All base-2 Narcissistic Number store as base-10
BASE3
All base-3 Narcissistic Number store as base-10
BASE4
All base-4 Narcissistic Number store as base-10
BASE5
All base-5 Narcissistic Number store as base-10
BASE6
All base-6 Narcissistic Number store as base-10
BASE7
All base-7 Narcissistic Number store as base-10
BASE8
All base-8 Narcissistic Number store as base-10
BASE9
All base-9 Narcissistic Number store as base-10
BASE10
All base-10 Narcissistic Number store as base-10

Functions§

base11
All base-11 Narcissistic Number store as base-10
base12
All base-12 Narcissistic Number store as base-10
base13
All base-13 Narcissistic Number store as base-10
base14
All base-14 Narcissistic Number store as base-10
base15
All base-14 Narcissistic Number store as base-10
base16
All base-16 Narcissistic Number store as base-10
narcissistic_numbers
Return a iterator that contains all narcissistic numbers of the given base.