Another version of Euler problem 7