How to generate a number which is divisible by all numbers in a given range? Suppose I want to find a number that is divisible by all 3 digit numbers (100-999), how do I write a code for that. I know only &quot;1&quot; can divide all 3 digit numbers, but I just want to know the logic.
The number you see is known as the least common multiple.