solved euler after a long time