Skip to content

Instantly share code, notes, and snippets.

@davelyon
Created February 23, 2011 02:38
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 davelyon/839883 to your computer and use it in GitHub Desktop.
Save davelyon/839883 to your computer and use it in GitHub Desktop.
Project Euler Fun for ACM Meeting
# 1
(0..1000).reject {|x| not (x%3 == 0 or x%5 == 0) }.inject(:+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment