This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingCompute a^b where the exponent arrives as a digit array.
What this asks
Compute a^b where b arrives as a huge digit array.
Fold one digit at a time: raise the value so far to the tenth power, then multiply in the base raised to the new digit, all modulo 1337.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing