An algorithm that computes modular nested exponentiation efficiently.
avivbrook/modular-nested-exponentiation
stable