from typing import List
import math


def lcm(nums: List[int]) -> int:
    """
    Computes the LCM of the specified numbers
    :param nums: Numbers to computer the LCM for
    :return: LCM of the numbers
    """
    n = nums[0]
    for i in nums[1:]:
        n = n * i // math.gcd(n, i)
    return n