[][src]Function prime_check::modpow

pub fn modpow(base: u64, exponent: u64, modulus: u64) -> u64

Implementation of modular exponentiation for u64. Exposed to JS. (b ^ e) % m

Arguments

Example

var num = module.modpow(2n,10n,10n);