Диан обнови решението на 29.10.2016 16:18 (преди над 1 година)
+package main
+
+// SquareSumDifference returns the difference between the square of the sum the
+// sum of the squares of the first n natural numbers
+func SquareSumDifference(n uint64) uint64 {
+ return n*(n+1)*n*(n+1)/4 - n*(n+1)*(2*n+1)/6
+}