TLE
Math, prime, sigma function to count number of divisors
Backtracking
Backtracking
Ad hoc