Function librualg::math::pow_mod[][src]

pub fn pow_mod(value: u64, n: u64, m: u64) -> u64

The function returns the value of x to the power of y by module.

 use librualg::math::pow_mod;

 assert_eq!(pow_mod(5, 100, 7), 2);