CommandsgcdOn this pagegcd gcd (A, B) The gcd function calculates the greatest common divisor of A and B. Both A and B are assumed to be integers. Examples // Compute least common multiple.Function LCM(a,b) Variable a, b return((a*b)/gcd(a,b))End See Also PrimeFactors, RatioFromNumber