October 6, 2010 - euler c#
Ok, this one is stupidly simple:
var squaredsum = Math.Pow(1.To(100).Sum(), 2); var sumedsquare = 1.To(100).Select(x => x * x).Sum(); Console.WriteLine(squaredsum - sumedsquare);