3 lines
No EOL
86 B
Ruby
Executable file
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(:+) |