Euler second problem complete