Add check for divisor of 1