int modPow(
int exponent,
int modulus
)

Returns this integer to the power of exponent modulo modulus.

The exponent must be non-negative and modulus must be positive.

Source

/**
 * Returns this integer to the power of [exponent] modulo [modulus].
 *
 * The [exponent] must be non-negative and [modulus] must be
 * positive.
 */
int modPow(int exponent, int modulus);