Update of Smallest multiple, stack overflow situation