Skip to main content

mod_inverse

Function mod_inverse 

Source
pub fn mod_inverse(a: u64, m: u64) -> Option<u64>
Expand description

Modular inverse of a modulo m, or None when gcd(a, m) != 1.