DEV Community


Discussion on: Project Euler #5 - Finding the Smallest Multiple

karataev profile image
Eugene Karataev

You do agree that the problem is implicitly asking you to find the LCM of 1,2,3,...,20?

And as you mentioned there are at least two ways to solve the problem. Both are valid.

And I don't disagree with you. Start with brute force and improve. You'd then have something to test your optimizations, clever code etc against.

We're on the same page 😉