Problem description, from Project Euler Find the difference between the sum of the squares of the first N natural numbers and the square of the sum. Solution This one actually seemed to be easier than the others. No filters required! The biggest hangup I had was that when I originally read the problem, I thought […]
There are 4 posts tagged math.
Project Euler Problem 2 Solution: Clojure
Problem 2 Description, from Project Euler Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed four million. Solutions My first attempt The trickiest thing for me was figuring out how to write the fibonacci function in an elegant way. I know that with functional languages, recursion is supposed […]
Project Euler Problem 1 Solution: Clojure