from math import gcd


def lcm(a: int, b: int) -> int:
    """
    https://en.wikipedia.org/wiki/Least_common_multiple

    >>> lcm(4, 6)
    12
    >>> lcm(21, 6)
    42
    """
    return (a // gcd(a, b)) * b