Prime Factorization of Integers
Problem
Find the prime factorization of 360. Build the factor tree step by step.
Explanation
What is prime factorization?
Every integer greater than 1 can be written as a product of prime numbers in exactly one way (up to order). This is the Fundamental Theorem of Arithmetic. Finding this product is called prime factorization.
Step-by-step: Factor 360
Method 1 — Repeated division by the smallest prime:
Step 1: Is 360 divisible by 2? Yes: .
Step 2: Is 180 divisible by 2? Yes: .
Step 3: Is 90 divisible by 2? Yes: .
Step 4: Is 45 divisible by 2? No. Try 3: .
Step 5: Is 15 divisible by 3? Yes: .
Step 6: 5 is prime. Stop.
Result:
Verification: ✓
Method 2 — Factor tree
Start with 360 and split into any two factors. Keep splitting until all leaves are prime:
No matter how you split, you always get the same primes: .
How to know when you're done
Stop testing primes when you reach a prime where the remaining number. For example, if the remaining number is 37: , so 37 must be prime (no prime up to 6 divides it).
The primes to test
You only need to test primes up to .
Number of divisors
From : the number of divisors is . This counts all combinations of prime powers from through , through , and through .
Common mistakes
- Forgetting to keep dividing by the same prime. , but don't move to 3 yet — try 2 again: , . Only move to 3 when 2 no longer divides.
- Thinking 1 is prime. It's not. The factorization doesn't include 1.
Try it in the visualization
Enter any number. The factor tree builds step by step — each split shows two children, and leaves (primes) are highlighted. The final factorization is displayed in exponential form.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.