How it works
Divide the number by 2 as many times as possible, then by 3, 5, 7 and so on. What remains are the prime factors. The number of divisors is the product of (power + 1) for each prime.
Advertisement
Formula
n = p1^a × p2^b × …; divisors = (a + 1)(b + 1)…
Example
Worked example: 360,360 = 2^3 × 3^2 × 5 × 7 × 11 × 13. Divisors = 4 × 3 × 2 × 2 × 2 × 2 = 192.
Frequently asked questions
How big a number can I use?
Up to 10,000,000,000,000.