Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Greatest Common Divisor by biorockstar
from functools import reduce
from fractions import gcd
def greatest_common_divisor(*args): return reduce(lambda x,y: gcd(x,y),[i for i in args])
Aug. 15, 2015
Comments: