The largest number that divides two or more numbers is the Greatest Common Divisor (GCD) for those numbers. For example:…