Editorial for Sum Square Difference
Published in
1 min readFeb 10, 2020
Problem of the Week 2a_2020
The problem suggests that you find the difference between the square of sum and the sum of squares of the first 100 natural numbers. That is, (1+2+…100)² -(1² + 2² + … + 100²)
. Since 100 is very small, you can solve this problem by simply running a loop from 1 to 100 and then computing the sums as you loop. Below is the implementation in Python 3:
Thank you 😃