diff options
Diffstat (limited to 'Problem56.py')
-rw-r--r-- | Problem56.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Problem56.py b/Problem56.py new file mode 100644 index 0000000..f02667f --- /dev/null +++ b/Problem56.py @@ -0,0 +1,11 @@ +maxsum = 0 +for a in range(0,100): + for b in range(0,100): + count = 0 + temp = str(pow(a,b)) + for x in range(0,len(temp)): + count += int(temp[x]) + if count > maxsum: maxsum = count +print(maxsum) + + |