There are several questions on Stack Overflow discussing how to find the Greatest Common Divisor of two values. One good answer shows a neat recursive function to do this.
But how can I find the GCD of a set of more than 2 integers? I can't seem to find an example of this.
Can anyone suggest the most efficient code to implement this function?
static int GCD(int[] IntegerSet)
{
// what goes here?
}