Digit fifth powers: Difference between revisions
Content added Content deleted
(Added Go) |
m (→{{header|Wren}}: Minor tweak) |
||
Line 345: | Line 345: | ||
System.print("The sum of all numbers that can be written as the sum of the 5th powers of their digits is:") |
System.print("The sum of all numbers that can be written as the sum of the 5th powers of their digits is:") |
||
var limit = 9 |
var limit = dp5[9] * 6 |
||
var sum = 0 |
var sum = 0 |
||
for (i in 2..limit) { |
for (i in 2..limit) { |