Use a more efficient approach for finding number of divisors.
Solve Problem 12.

Unfortunately I couldn't make a linq-style solution work for this
one, but a solution is still a solution.