Skip to content

Instantly share code, notes, and snippets.

@gyng
Created May 28, 2012 01:46
Show Gist options
  • Save gyng/2816769 to your computer and use it in GitHub Desktop.
Save gyng/2816769 to your computer and use it in GitHub Desktop.
n = 0
for i in 1..2000000000 do
n += 1 if (i % 3 == 0 && i % 5 == 0)
end
puts n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment