I've always wondered how X^Y MOD Z was computed, but never looked it up. But now Computerphile put out a great Square and Multiply Algorithm video to save me the trouble. https://lnkd.in/gJG5YRD8 ...