Skip to content

Instantly share code, notes, and snippets.

@hroi
Created February 23, 2010 15:22
Show Gist options
  • Save hroi/312289 to your computer and use it in GitHub Desktop.
Save hroi/312289 to your computer and use it in GitHub Desktop.
; Problem 1:
; Find the sum of all the multiples of 3 or 5 below 1000.
(apply + (filter #(or (zero? (mod % 5))
(zero? (mod % 3)))
(range 1000)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment