Algorithm idea: Exponentiation by squaring
See
https://en.wikipedia.org/wiki/Exponentiation_by_squaring
Edited
Aug 18, 2025
by
Andreas Muckenschnabel