Thursday, April 1, 2010

A Clojure solution for Project Euler - Problem 1

(reduce +
(distinct
(concat (range 3 1000 3)(range 5 1000 5))))
view raw euler1.clj hosted with ❤ by GitHub

Answer: 233168

Here is a link to the problem
and here is a link to its groovy solution

No comments:

Post a Comment