public static int PowMod(
int b,
int e,
int m
)Public Shared Function PowMod (
b As Integer,
e As Integer,
m As Integer
) As Integerpublic:
static int PowMod(
int b,
int e,
int m
)static member PowMod :
b : int *
e : int *
m : int -> int Modular exponentiation is used in many number-theory applications, including primality testing, prime factorization, and cryptography.
| ArgumentOutOfRangeException | b, e, or m is not positive. |