Prime Factorization Calculator

Break any whole number into its prime building blocks in seconds. See the full factorization with exponents, every prime factor, the divisor count, and the sum of all divisors — free, instant, and right in your browser.

100% FreeNo sign-upInstant resultsWorks up to 10^12

Every whole number greater than 1 is either prime itself or can be written as a unique product of prime numbers. That unique product is its prime factorization, and it is the key to simplifying fractions, finding greatest common factors, and solving many number problems. Try 360 below: you will get 2^3 × 3^2 × 5, along with 24 divisors that add up to 1170.

Prime Factorization Calculator

Enter a positive whole number. Results update as you type.

Advanced options

These sections are already included in your result below. Uncheck any box to hide that section.

Your information is not stored. Calculations are done in your browser.

Result

360 = 23 × 32 × 5

360 is a composite number.

3Distinct prime factors
24Number of divisors
1170Sum of all divisors
12Factor pairs

Factor pairs

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

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

Prime factors (with repetition)

2, 2, 2, 3, 3, 5

Key takeaways

  • 360 = 2^3 × 3^2 × 5. It has 3 distinct prime factors, 24 divisors in total, and those divisors add up to 1170.
  • Every whole number above 1 has exactly one prime factorization. That is the Fundamental Theorem of Arithmetic, and it is why prime factorization is so useful.
  • 1 is special: it has no prime factors at all, because 1 is neither prime nor composite.
  • Prime inputs stay prime: enter 97 and the answer is simply 97, with exactly 2 divisors.

Contents

Related tools

What is prime factorization?

A prime number is a whole number greater than 1 that has exactly two divisors: 1 and itself. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29. A composite number has more than two divisors. Prime factorization writes a composite number as a product of prime numbers, grouping repeated primes with exponents. For example, 100 = 2^2 × 5^2, because 100 = 2 × 2 × 5 × 5.

The Fundamental Theorem of Arithmetic says this factorization is unique: apart from the order of the factors, there is only one way to do it. That uniqueness is what makes prime factorization a reliable tool — two numbers with the same factorization are the same number.

How to find prime factors step by step

Method 1: Repeated division by primes

Start with the smallest prime, 2. Divide as many times as possible, then move to 3, then 5, then 7, and so on. Stop when the remaining quotient is 1 or prime. For 360: divide by 2 three times (360 → 180 → 90 → 45), then by 3 twice (45 → 15 → 5), and 5 is prime. So 360 = 2^3 × 3^2 × 5.

Method 2: The factor tree

Split the number into any two factors, then keep splitting each branch until every branch ends in a prime. For 100: 100 = 10 × 10, and 10 = 2 × 5, so the leaves are 2, 5, 2, 5 — giving 100 = 2^2 × 5^2. Every tree for the same number ends with the same primes.

Worked examples

360 = 2^3 × 3^2 × 5

Divisors: (3 + 1) × (2 + 1) × (1 + 1) = 24 divisors. Sum of divisors: (2^4 − 1) × (3^3 − 1) / 2 × (5^2 − 1) / 4 = 15 × 13 × 6 = 1170.

100 = 2^2 × 5^2

Divisor count: (2 + 1) × (2 + 1) = 9 divisors: 1, 2, 4, 5, 10, 20, 25, 50, 100. Their sum is 217.

97 is prime

97 has no divisors other than 1 and itself, so its prime factorization is just 97. It has 2 divisors and their sum is 98.

1 has no prime factors

1 is neither prime nor composite. It has exactly 1 divisor (itself), and its divisor sum is 1. The calculator reports this case explicitly instead of forcing a factorization that does not exist.

720 = 2^4 × 3^2 × 5

Divisor count: (4 + 1) × (2 + 1) × (1 + 1) = 30 divisors. Divisor sum: 31 × 13 × 6 = 2418.

Prime factorizations from 2 to 30

NumberPrime factorizationNumberPrime factorization
221717
33182 × 3^2
42^21919
55202^2 × 5
62 × 3213 × 7
77222 × 11
82^32323
93^2242^3 × 3
102 × 5255^2
1111262 × 13
122^2 × 3273^3
1313282^2 × 7
142 × 72929
153 × 5302 × 3 × 5

Where prime factorization is used

Simplifying fractions: cancel common prime factors from numerator and denominator. Greatest common factor: take the lowest power of each shared prime. Least common multiple: take the highest power of each prime that appears. Checking for perfect squares: a number is a perfect square exactly when every exponent in its factorization is even. Cryptography: the difficulty of factoring very large numbers is what keeps RSA encryption secure.

How it works

Step 1

Enter any positive whole number up to 10^12.

Step 2

The calculator divides by primes in order — 2, 3, 5, 7, and so on — until nothing is left but 1 or a prime.

Step 3

Read the factorization with exponents, plus divisor count, divisor sum, factor pairs, and the primality verdict.

Frequently asked questions

What is the prime factorization of 360?

360 = 2^3 × 3^2 × 5. It has 3 distinct prime factors, 24 divisors, and its divisors add up to 1170.

What is the prime factorization of 100?

100 = 2^2 × 5^2. It has 9 divisors: 1, 2, 4, 5, 10, 20, 25, 50, and 100, which sum to 217.

Is 1 a prime number, and what is its prime factorization?

No. 1 is neither prime nor composite, and it has no prime factorization. It has exactly one divisor, itself.

How do I know if a number is prime?

A number is prime when its only divisors are 1 and itself. This calculator reports a primality verdict for every input: enter 97 and it confirms 97 is prime.

What is the largest number this calculator accepts?

Numbers up to 10^12 (one trillion). Larger inputs show a limit message, because trial division gets slow beyond that range in a browser.

Why does every number have only one prime factorization?

That is the Fundamental Theorem of Arithmetic. No matter which method you use — repeated division or a factor tree — you always end up with the same primes and the same exponents.

Disclaimer: This calculator is provided for general educational purposes. Results are computed in your browser from the number you enter. For advanced number theory or cryptography work, verify results with a dedicated mathematical tool.