These problems are inspired in some of the problems from Project Euler. You can find them at https://projecteuler.net.
Write a function diffSqrs :: Integer -> Integer that, given a natural n, returns the difference between the sum of the squares of the first n natural numbers and the square of the sum of the first n natural numbers.
Scoring
Each function scores 20 points.
Input
diffSqrs 10 map pythagoreanTriplets [3,12,84] take 5 tartaglia sumDigits 32768 digitalRoot 65536
Output
2640 [[],[(3,4,5)],[(12,35,37),(21,28,35)]] [[1],[1,1],[1,2,1],[1,3,3,1],[1,4,6,4,1]] 26 7