Skip to content

Instantly share code, notes, and snippets.

@citizen428
Created July 2, 2009 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save citizen428/139564 to your computer and use it in GitHub Desktop.
Save citizen428/139564 to your computer and use it in GitHub Desktop.
Number dividesBy = (x):
self % x == 0.
sum = 0
1 to 999 (x):
if (x dividesBy(3) || x dividesBy(5)): sum += x
_x
(sum, "\n") join print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment