update the method for finding the smallest multiple in problem 5