You are viewing a single comment's thread. Return to all comments →
:)
n = int(input()) max = 0 for i in range(n): for j in range(n): rand = i**j #or pow(i,j) a = list(map(int, str(rand))) if(sum(a) > max): max = sum(a) print(max)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #56: Powerful digit sum
You are viewing a single comment's thread. Return to all comments →
:)