Input N to instantly view prime factorization, total divisors, Euler totient, and full sorted divisors list with prime highlighting.
Factorising by trial division costs about the square root of N. Doing it with a smallest-prime-factor sieve costs about the number of prime factors, which is under 24 for any 64-bit number. The Prime Factorizer builds that sieve once for everything up to 100,000 and falls back to trial division above it.
Four cards answer the questions a factorisation is usually a step towards: whether N is prime, how many divisors it has, Euler's totient, and how many distinct prime factors there are. Below them the full sorted divisor list is laid out with the prime ones tinted green.
Eight example chips run from 1 through 360 and 99,991 to 1,000,000, which between them cover the degenerate case, a highly composite number, a 5-digit prime and a perfect power. Everything computes on the page.
The field opens on 360. The factorisation line reads 360 = 2^3 × 3^2 × 5, and the cards report 24 divisors, an Euler totient of 96, and 3 distinct prime factors. Those numbers are related: multiply each exponent plus one, 4 times 3 times 2, and you get the divisor count without listing anything. The totient comes from the same factorisation, multiplying 360 by one half, two thirds and four fifths.
1 (no prime factors). Zero and negatives produce no output at all.99,991, which is prime and sits just below the sieve limit.1,000,000 has 49 divisors and a totient of 400,000, and the list is scrollable at that size.Prime?
No
# Divisors
24
Euler φ(n)
96
# Prime Factors
3
Prime Factorization
360 = 2^3 × 3^2 × 5
All Divisors of 360 (24 total)
Green = prime divisor
Try: