solved eulers poblem