Calculates the least common multiple (LCM) of a set of positive integers. The least common multiple is the smallest positive integer that is a multiple of all the given integer values.