numbers = range(1, n+1)
sum_squares = sum(i**2 for i in numbers)
square_sum = sum(numbers)**2
return square_sum - sum_squares
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.