js euler#3