Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Created November 30, 2015 19:31
Show Gist options
  • Save clauswitt/d1003f692c589eae7e9e to your computer and use it in GitHub Desktop.
Save clauswitt/d1003f692c589eae7e9e to your computer and use it in GitHub Desktop.
Array.apply(null, Array(1000)).map(function (_, i) {return i;}).reduce(function(sum, cur) {if(cur%3==0 || cur%5==0)sum+=cur;return sum});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment