Log in to save your progress.
<< Back to problems
OBS! Fönstret är för smalt för att använda pythonlabbet.se. Använd en enhet med tangentbord!

Sum square difference

Prerequisites: Basic course part I

The sum of the squares of the first ten natural numbers is $$1^2+2^2+...+10^2=385$$ The square of the sum of the first ten natural numbers is $$(1+2+...+10)^2=55^2=3025$$ In this case, the difference between the sum of the squares and the square of the sum is \( 3025-385=2640 \).

Print the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.

This is an English translation of the sixth problem on Project Euler.

Login to save your progress and your code.

Create

Write your code here.

-- Output from your program will be here --