The task are:
gcd method:
To find the gdc of 2 integers (accepting (int num1, int num2)
checkGCD method:
to assure that all numbers in the array are gdc=1 with each other. It checks all numbers in the array with all others.
So that : {4, 7, 8, 9}
is checked:
4, 7 | 4,8 | 4,9
7,8 | 7,9 |
8,9...