Smallest Common Multiple strange problem

Technically your code produce the correct output, however it’s not getting accepted because FCC has an infinite loop protection, and your code stays inside the same loop more that ~500ms.

1 Like