Skip to content
Prev Previous commit
Next Next commit
created sol1.py for problem 56 project_euler
  • Loading branch information
nehamsoni authored Jun 1, 2019
commit 52a4cc86ecc6181cde9b6417ef1c71d7f0706dc1
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