Skip to content

Instantly share code, notes, and snippets.

@tgallant
Last active August 29, 2015 14:08
Show Gist options
  • Save tgallant/f35d847ccdfef1ffa2cc to your computer and use it in GitHub Desktop.
Save tgallant/f35d847ccdfef1ffa2cc to your computer and use it in GitHub Desktop.
euler1
;; e1
(define (mod-three-or-five? x)
(if (or
(= (modulo x 3) 0)
(= (modulo x 5) 0)) #t #f))
(define (e1 x)
(sum
(filter
mod-three-or-five?
(iota x))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment