Skip to content
12 changes: 12 additions & 0 deletions project_euler/problem_56/sol1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
high=0
for a in range(1,100):
for b in range(1,100):
c=0
for k in list(str(a**b)):
c+=int(k)
if c>high:
high=c


print(high)
#972--answer