sum of digits script