30 seconds of PHPBack to Home
Calculates the greatest common divisor between two or more numbers.
array_reduce() with the
gcd function to appy to all elements in the
Base case is when
0. In this case, return
Otherwise, return the gcd of
y and the remainder of the division