andrew-field / projecteuler-go

Testing and practising Go with Project Euler
MIT License
0 stars 0 forks source link

Challenge 16: Power Digit Sum #19

Closed andrew-field closed 6 years ago

andrew-field commented 6 years ago

215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.

What is the sum of the digits of the number 21000?

andrew-field commented 6 years ago

Simply calculates 21000 and then sums the digits of the answer. I don't know a clever way of doing this.