Find the difference between the square of the sums and sum of the squares.
This is the mathematical representation:
(∑n)^2-∑n^2
\$\left(\sum n\right)^2-\sum n^2\$
Your program/method should take two inputs, these are your lower and upper limits of the range, and are inclusive. Limits will be whole integers above 0.
Your program/method should return the answer.
You may use whichever base you would like to, but please state in your answer which base you have used.
Test case (Base 10)
5,9 970
91,123 12087152
1,10 2640
This is usual code-golf, so the shorter the answer the better.