Open
Description
From @ejmahler on June 30, 2016 22:59
In num_integer, I see an implementation of gcd.
I would like to implement some related number theory functions: modular exponentiation, extended euclid's algorithm, modular multiplicative inverse.
I'm also interested in prime factorization, euler's totient function, primitive roots, etc, but these might be too much.
Is there an interest for these functions in this library, to go alongside gcd? I'd be happy to implement the functions, tests, documentation, etc, I just want to make sure there's interest from the maintainers before I begin.
Copied from original issue: rust-num/num#202