Problem 6

The problem 6 of the Euler project site was again easy to solve. Using Haskell, I wrote the following one-line function:

    g = (sum [1..100] ^ 2) - (sum (map (^2) [1..100]))

Published: October 31 2009

blog comments powered by Disqus