Post Reply 
Find LCM of 2 numbers without using GCD
07-30-2018, 06:42 PM
Post: #10
RE: Find LCM of 2 numbers without using GCD
(07-30-2018 06:13 PM)Albert Chan Wrote:  
(07-30-2018 04:41 PM)Thomas Klemm Wrote:  But then why not using Jean-Marc Baillard's solution: GCD?

Exactly ! Why brute force LCM ?

The point here is not coding the best possible LCM algorithm. The program you linked is an example for the appropriate method on a suitable calculator (with MOD). But the idea of this thread is how to code a much less powerful method on a less powerful calculator like the 12C.

Of course that's nothing what you'd seriously consider for writing an LCM program. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Find LCM of 2 numbers without using GCD - Dieter - 07-30-2018 06:42 PM



User(s) browsing this thread: 1 Guest(s)