solving euler6