SMS: Sums of squares of integers