1
0
Fork 0
Project-Euler/Ruby/1-c.rb

3 lines
No EOL
86 B
Ruby
Executable file

#!/usr/bin/env ruby
puts (1...1000).select{ |i| i % 3 == 0 || i % 5 == 0 }.inject(:+)