euler10.js initial solution too slow