Finding the Greatest Common Divisor of Two Integers

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
matqkks
Messages
283
Reaction score
6
How do computers evaluate the gcd of two integers?
 
Mathematics news on Phys.org
matqkks said:
How do computers evaluate the gcd of two integers?

Hi,

They use Euclid's algorithm, described here. (Look in particular at section 2, Description).