function ret = checkFactor(a, b) ret = mod(a, b) == 0;