prime_check
pub fn modpow(base: u64, exponent: u64, modulus: u64) -> u64
Implementation of modular exponentiation for u64. Exposed to JS. (b ^ e) % m
(b ^ e) % m
base
u64
BigInt
exponent
modulus
var num = module.modpow(2n,10n,10n);