Ad
  • Custom User Avatar

    You can actually still improve this further if you'd like. You're iterating more times than you need to, and therefore checking too many numbers.

  • Custom User Avatar

    I'm having the same issue. Straight-ahead calculation of LCM takes way too long. :-)