Solved 294, divisors

Used fermet's little theorem for finding prime numbers
Found the number of factors for each number.