Skip to content

Instantly share code, notes, and snippets.

@ihodes
Created July 20, 2010 17:22
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 ihodes/483248 to your computer and use it in GitHub Desktop.
Save ihodes/483248 to your computer and use it in GitHub Desktop.
(defn sum-nums-mod-3-5
[n]
(reduce +
(filter #(or (zero? (mod % 3)) (zero? (mod % 5)))
(range n))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment