计算公约数
function
greatestCommonDivisor
(a,b){
if(b==0){
return a;
}
return
greatestCommonDivisor
(b,a%b)
}