Changed >0 in checkNum to >=0.  Previously would fail any number smaller
than the divisor due to integer division.