Least common multiple of three or four numbers