Skip to content

Instantly share code, notes, and snippets.

View zach-mcnulty's full-sized avatar

Zach McNulty zach-mcnulty

View GitHub Profile
@ooade
ooade / projectEuler12.js
Last active October 20, 2020 17:44
Project Euler 12 JavaScript Solution
var x = 0, y = 1;
while (factors(x).length <= 500) {
x += y;
y++;
}
console.log(x);
function factors(n) {