Skip to content

solendil/euler-javascript

Repository files navigation

Project Euler in javascript

This is an experiment of solving https://projecteuler.net/ problems using Javascript. Code must work only in Chrome; so latest ES6 is allowed. These little programs make use of:

  • generators
  • spread operator
  • destructuring assignment
  • Set
  • for... of
  • arrow notation
function divisors(nb) {
  let res=new Set();
  for (let combi of combinations(primeFactors(nb)))
    res.add(combi.reduce((res,nb)=>res*nb, 1));
  return [...res];
}

About

Solving Project Euler problems in Javascript (ES6)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published