Questions tagged [lcm]

LCM(a, b) is the smallest positive integer that is divisible by both a and b.

Least common multiple (also called the lowest common multiple or smallest common multiple) of two integers a and b, usually denoted by LCM(a, b), is the smallest positive integer that is divisible by both a and b.

166 questions
-9
votes
1 answer

Sum of LCM range from 1 to 10^9

So, first programming course, first nongraded assignment: In C++, for the range of numbers from 1 to 1 billion, find the sum of the numbers that are divisible (without remainder) by all 1 through 99. How do I go about this? How do I even find the…
Austin
  • 6,921
  • 12
  • 73
  • 138
1 2 3
11
12