Login
7 branches 0 tags
Benjamin Vincent Schulenburg Allow nujel methods for primitive types 2c34de5 2 years ago 1063 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}"