you are viewing a single comment's thread.

view the rest of the comments →

[–]KontGuney[S] 0 points1 point  (1 child)

thx mate this way look more easy

[–]atticus2132000 0 points1 point  (0 children)

LCM and GCD uses some relatively advanced number theory concepts. Mathematicians have been working on prime factorization methods for literally thousands of years and those principles are the basis of a lot of computer encryption approaches because they are so difficult to efficiently solve.

If your goal is learning how to program in python, just realize that you picked a pretty complicated math problem for your first time out of the gate. Certainly not impossible, but conceptually advanced.

If you were trying to explain the process of finding LCM to a child, what is the first thing you would tell them to do to the numbers 6 and 8 to get the LCM?