Skip to content

Instantly share code, notes, and snippets.

@jeremyheiler
Created January 26, 2011 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyheiler/797092 to your computer and use it in GitHub Desktop.
Save jeremyheiler/797092 to your computer and use it in GitHub Desktop.
Project Euler Problem 1 in Clojure
(defn pe1 [max]
(reduce +
(union
(set (range 0 max 3))
(set (range 0 max 5)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment