--- from: http://rosettacode.org/wiki/Sum_digits_of_an_integer