Skip to content

Commit

Permalink
add euler056 solution (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
kailanefelix authored Oct 5, 2021
1 parent 13e56bb commit 7958c0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions euler0XX/euler056.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
max_sum = 0
for a in range(1, 100):
for b in range(1, 100):
p = a ** b
p_sum = sum(int(i) for i in str(p))
if p_sum > max_sum:
max_sum = p_sum
print(max_sum)

0 comments on commit 7958c0c

Please sign in to comment.