Write a program such that, given strictly positive natural numbers , prints their least common multiple greater than zero.
Input consists of several cases. Each case begins with a number , followed by . A special case with marks the end of input.
For every case, print in a line the least common multiple greater than zero of . For the given cases, this number will always be between 1 and .
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T12:11:43.887Z
© Jutge.org, 2006–2026.
https://jutge.org