-2

How to work with numbers of the order 10^100?Like iterating upto a number of that order,getting sum of squares of their digits;then checking if the sum matches the square of a certain number,if yes sum up those numbers and finally display the sum of those numbers.

MSZ
  • 11

1 Answers1

0

You can easily handle this kind of task with strings containing the decimal representation of the numbers.

The sum of squares of the digits of a 100 digit number is bounded by 100*9^2 = 8100: you can use int for that.

chqrlie
  • 131,814
  • 10
  • 121
  • 189