Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
solved problem 56
  • Loading branch information
nehamsoni authored May 30, 2019
commit 854f19c99500cf2493b0c338a3c4620e1101d1dc
11 changes: 11 additions & 0 deletions project_euler/problem56.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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)