Calculate where is given as an array of digits. For example, if and , you compute .
The exponent can be large (up to 2100 digits), so you cannot convert it to a regular integer. This tests your understanding of modular exponentiation properties.
Modular exponentiation challenge
Calculate where is given as an array of digits. For example, if and , you compute .
The exponent can be large (up to 2100 digits), so you cannot convert it to a regular integer. This tests your understanding of modular exponentiation properties.