Prime Factorization Calculator - Factor Tree and Divisors

Calculators / Math Calculators / Prime Factorization

Prime Factorization Calculator

Up to 24 digits. Very large numbers can take a moment; the page stays responsive.

Prime factorization 2³ × 3² × 5
Number of divisors 24
Sum of divisors 1170
Euler totient φ(n) 96
Distinct prime factors 3
All divisors

1; 2; 3; 4; 5; 6; 8; 9; 10; 12; 15; 18; 20; 24; 30; 36; 40; 45; 60; 72; 90; 120; 180; 360

Step-by-step solution

360 ÷ 2 = 180
180 ÷ 2 = 90
90 ÷ 2 = 45
45 ÷ 3 = 15
15 ÷ 3 = 5
5 ÷ 5 = 1
360 = 2³ × 3² × 5
d(n) = (3 + 1) · (2 + 1) · (1 + 1) = 24

About prime factorization

Every whole number greater than 1 is a product of primes in exactly one way, apart from the order. That product is its prime factorization.

How to use it

  1. 1 Type a whole number or pick an example.
  2. 2 Read the factorization and follow the factor tree from top to bottom.
  3. 3 See the divisors and the division steps below.

Formula

n = p₁ᵃ · p₂ᵇ · p₃ᶜ · …
d(n) = (a + 1) · (b + 1) · (c + 1) · …
σ(n) = (p₁ᵃ⁺¹ − 1)/(p₁ − 1) · (p₂ᵇ⁺¹ − 1)/(p₂ − 1) · …
φ(n) = n · (1 − 1/p₁) · (1 − 1/p₂) · …

Finding factors by hand

Divide by 2 as long as possible, then by 3, 5, 7 and so on. You can stop when the prime you are trying, multiplied by itself, is larger than what is left; the rest is then prime.

Counting divisors

Add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5 that gives 4 × 3 × 2 = 24 divisors.

How large numbers are handled

Small primes are removed by division. The rest is tested with the Miller-Rabin test, using bases that make it exact for this size, and split with the Pollard rho method.

Related calculators: GCF and LCM · Logarithm

Prime Factorization FAQ

No. A prime has exactly two divisors, and 1 has only one.
New
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.
Popular Today
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.

Other math calculators

Scientific Calculator A scientific calculator with trigonometry, logarithms, powers, roots and factorials. Type an expression or use the keypad; degrees and radians both supported.
Fraction Calculator Add, subtract, multiply or divide two fractions. The answer is simplified and also shown as a mixed number and a decimal, so you can use the form you need.
Standard Deviation Paste a list of numbers and get the standard deviation, variance, mean, median, mode and range at once - both the sample and the population version.
Quadratic Solver Enter a, b and c to solve ax² + bx + c = 0. You get the roots, the discriminant that decides how many there are, and the vertex of the parabola.
Triangle Calculator Solve a right triangle from any two sides, or a general triangle from all three. You get the missing side, all three angles, the area and a drawing to scale.

Other Calculators You May Like

Age Calculator Free age calculator: enter your birth date to see your exact age in years, months, days, hours and minutes, plus the countdown to your next birthday.
Date Difference Calculator Free date difference calculator: find the exact time between two dates in years, months, days and weeks, and see how many working days fall in between.
Day of the Week Calculator Free day of the week calculator: find out which weekday any date falls on - past or future - handy for birthdays, events and historical dates.
Business Days Calculator Free business days calculator: count the working days between two dates, weekends excluded - useful for deadlines, delivery dates and project planning.
Week Number Calculator Free ISO 8601 week number calculator: find which week of the year any date falls in, and see the first and last day of that week at a glance.