Naive Algorithm

Nice problem... not usually built in to the language but important for many applications (factoring, e.g.).

Once again, a naive algorithm is not hard to specify. [Step 1]

algorithm88


next up previous
Next: Analysis of Naive Up: GREATEST COMMON DIVISOR Previous: Modulus