• + 0 comments

    A minimal complete solution in Haskell is rather trivial

    main = getLine >> getLine >>= print. foldr1 lcm. map read. words