The series, 11 + 22 + 33 + … + 1010 = 10405071317.

Find the last ten digits of the series, 11 + 22 + 33 + … + 10001000.

何の工夫もなしに。

let g n = n^n
reverse.take 10.reverse.show.sum.map g $[1..1000]