Solution of #65.
Refactor factorize function.
Merge branch 'master' of https://github.com/ntalbs/euler