Problem 372 · Medium

Super Power

Compute a number raised to a very large power given as a list of digits, reporting the result modulo 1337. The visual handles one exponent digit at a time and combines the partial powers.

Open the interactive visualisation