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]))
blog comments powered by Disqus
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]))