galois.euclidean_algorithm

galois.euclidean_algorithm(a, b)[source]

Implements the Euclidean Algorithm to find the greatest common divisor of two integers.

Parameters
  • a (int) – Any integer.

  • b (int) – Any integer.

Returns

Greatest common divisor of a and b, i.e. gcd(a,b).

Return type

int

References