最大公因数(英语:highest common factor,hcf)也称最大公约数(英语:greatest common divisor,gcd)是数学词汇,指能够整除多个整数个最大正整数。而多个整数弗能侪是零。比方讲8搭12个最大公因数为4。