Prime Factorization Calculator

Hover nodes for details · drag to pan

Hover a node to see the division step

  1. Factor 360:
  2. 360 ÷ 2 = 180
  3. 180 ÷ 2 = 90
  4. 90 ÷ 2 = 45
  5. 45 ÷ 3 = 15
  6. 15 ÷ 3 = 5
  7. Remaining prime factor: 5
360 = 2³ × 3² × 5
PropertyValue
Prime factorization2³ × 3² × 5
Prime factors (list)2, 3, 5
Is prime?No

n = p₁^a × p₂^b × …

Prime Factorization Explained

Every integer greater than 1 can be written uniquely as a product of prime numbers — this is the Fundamental Theorem of Arithmetic. Prime factorization breaks a composite number into its prime building blocks, typically displayed in exponential form. The number 360 decomposes as 360 = 2³ × 3² × 5 because 360 = 8 × 9 × 5 = 2×2×2 × 3×3 × 5. The exponents show how many times each prime appears.

The trial division algorithm tests small primes in order: divide by 2 while possible, then 3, then test odd candidates 5, 7, 11, … up to √remaining. Each successful division is recorded as a step. For 100: 100 ÷ 2 = 50, 50 ÷ 2 = 25, 25 ÷ 5 = 5, 5 ÷ 5 = 1 — yielding 100 = 2² × 5². A number is prime if the factorization contains only itself: 97 = 97 with no smaller divisors.

Factor trees offer a visual alternative taught in schools: repeatedly split composite nodes into smaller factors until all leaves are prime. The tree for 360 might branch 360 → 36 × 10 → (6×6) × (2×5) → … arriving at the same 2³ × 3² × 5 regardless of branch choices. This calculator shows sequential division steps equivalent to a factor tree's logic.

Prime factorization powers GCF and LCM computation: GCF takes the minimum exponent of each shared prime; LCM takes the maximum. It simplifies radicals (√72 = √(2³×3²) = 6√2), counts divisors (add 1 to each exponent and multiply: (3+1)(2+1)(1+1) = 24 divisors for 360), and underpins cryptographic key generation where enormous primes are multiplied together. Link to the factor calculator to list all divisors from the prime exponents.

Special cases: 1 has no prime factors (empty product by convention). 2 is the only even prime. All other primes are odd. Large composites like 360 = 2³×3²×5 and 100 = 2²×5² illustrate how the same primes recur across numbers — shared factors drive the GCF calculator and fraction simplification.

Enter any positive integer and receive exponential form, the list of distinct primes, step-by-step division, and a primality flag. Use results to verify homework, prepare for algebra lessons on radicals and rationals, or explore number theory patterns in composite and prime structure.

Divisors count formula from exponents: if n = p₁^a × p₂^b × …, the number of positive divisors is (a+1)(b+1)…. For 360 = 2³×3²×5, divisor count = (3+1)(2+1)(1+1) = 24. Cross-check with the factor calculator to list all 24 divisors explicitly and confirm the exponential decomposition is correct.

Examples

ExampleResult
3602³ × 3² × 5
1002² × 5²
9797 (prime)
122² × 3
842² × 3 × 7
Prime test: 917 × 13 (composite)
22 (prime)

Frequently asked questions

360 = 2³ × 3² × 5, because 360 = 8 × 9 × 5.

Yes. 97 has no divisors other than 1 and 97, so its prime factorization is simply 97.

By convention, 1 is neither prime nor composite. It has exactly one positive divisor, while primes require exactly two.

Related calculators