project-euler/188_the_hyperexponentiation...

12 lines
104 B
Python
Raw Normal View History

2023-03-25 17:24:17 +01:00
#!/usr/bin/env python3
a = 1777
k = 1855
n = 1
for i in range(k):
n = pow(a, n, 10**8)
print(n)