Skip to content

Instantly share code, notes, and snippets.

View guioconnor's full-sized avatar
🦎

Guilherme Zühlke O'Connor guioconnor

🦎
  • London, UK
View GitHub Profile
@guioconnor
guioconnor / project-euler-problem-1.2.js
Created March 1, 2012 17:30 — forked from nefarioustim/project-euler-problem-1.2.js
Find the sum of all the multiples of 3 or 5 below 1000.
// Do the maths
for(
var sum = 0, i = 1;
i < 1000;
!(i % 3 && i % 5) && (sum += i), i++
);
// Log the result
console.log(sum);