You don't even need an algorithm to find those numbers: they're just multiples of 2520. That's not some kind of magic number, it's just the least common multiple of numbers from 1 to 10.
Oh..i didnt see that one. Thanks for the information.
We're a place where coders share, stay up-to-date and grow their careers.
You don't even need an algorithm to find those numbers: they're just multiples of 2520. That's not some kind of magic number, it's just the least common multiple of numbers from 1 to 10.
Oh..i didnt see that one.
Thanks for the information.