solved euler6 (in my way)