added factor and countDivisors to utilities