Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
5-liner: looping gcd through args solution in Clear category for The Greatest Common Divisor by Stensen
from math import gcd
def greatest_common_divisor(*args):
_gcd = args[0]
for i in args[1:]: _gcd = gcd(_gcd, i)
return _gcd
Sept. 27, 2020