Login
7 branches 0 tags
Ben (MBA M2) Fixed bug in :last-index-of and added tests f5a037c 2 years ago 1145 Commits
nujel / benchmark / euler1 / ruby.rby
#!/usr/bin/env ruby

ret = 0
for i in 0..(10000000-1) do
  if ((i % 3) == 0) || ((i % 5) == 0) then
    ret = ret + i
  end
end
puts "The sum is: #{ret}"