Skip to content

Instantly share code, notes, and snippets.

@artbikes
Created November 29, 2012 22:24
Show Gist options
  • Save artbikes/4172313 to your computer and use it in GitHub Desktop.
Save artbikes/4172313 to your computer and use it in GitHub Desktop.
Euler #1
(1...1000).select {|x| x % 3 == 0 || x % 5 == 0}.inject(:+)
@artbikes
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment