Greatest Common Divisor

Find the greatest common divisor (GCD) of two numbers using the Euclidean algorithm.

Code

Algorithms
import math
return math.gcd(a, b)

Parameters

First number

Second number

Server

More Python Snippets