Logo

Programming-Idioms

History of Idiom 74 > diff from v12 to v13

Edit summary for version 13 by :

Version 12

2015-09-04, 17:26:01

Version 13

2015-09-05, 19:30:19

Idiom #74 Compute GCD

Compute the greatest common divisor x of big integers a and b. Use an integer type able to handle huge numbers.

Idiom #74 Compute GCD

Compute the greatest common divisor x of big integers a and b. Use an integer type able to handle huge numbers.

Code
gcd a b
Code
x = gcd a b