There are 31 perfect squares from 1 to 1000
The sum of these = [ 31 (31 + 1)(2*31 + 1) ] / 6 = 10,416 (1)
The sum of the first 1000 positive integers = (1000)(1001)/ 2 = 500,500 (2)
So....subtracting (1) from (2) should give us our answer : 500,500 - 10,416 = 490,084
