I would like to calculate the Least Common Multiple of the 100 first numbers. I've tried with
LCM[Table[i, {i, 10}]]
But it produces a list instead of the right answer, a single number.
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
It seems that LCM doesn't like to get a list as the input.
What's the proper way to do it?
LCMtakes aSequenceof numbers (not aListof numbers as input. UseLCM @@ Table[i, {i, 100}]? orLCM[Sequence @@ Table[i, {i, 100}]]. – kglr Mar 19 '15 at 01:51LCM. – kglr Mar 19 '15 at 11:41Apply[LCM,Range[100]]works as well – ə̷̶̸͇̘̜́̍͗̂̄︣͟ Apr 30 '23 at 01:08