Digit fifth powers: Difference between revisions

Content added Content deleted
(added AWK)
(Added 11l)
Line 7: Line 7:
Even though 1<sup>5</sup> = 1, it is not expressed as a ''sum'' (a sum being the summation of a list of two or more numbers), and is therefore not included.
Even though 1<sup>5</sup> = 1, it is not expressed as a ''sum'' (a sum being the summation of a list of two or more numbers), and is therefore not included.
<br><br>
<br><br>

=={{header|11l}}==
<lang 11l>F fifth_power_digit_sum(n)
R sum(String(n).map(c -> Int(c) ^ 5))

print(sum((2..999999).filter(i -> i == fifth_power_digit_sum(i))))</lang>

{{out}}
<pre>
443839
</pre>


=={{header|8080 Assembly}}==
=={{header|8080 Assembly}}==