Factor tree & trial division steps
Prime Factorization Calculator
Break a whole number into prime factors with trial division: exponential form (e.g. 100 = 2Β² Γ 5Β²), factor tree, Logic Trace, and copy. Up to 12 digits. Runs locally.
By Jeff Beem
Updated
Enter a number
Enter a positive integer. Trial division identifies all prime factors and builds an exponential factorization (e.g., 2Β³ Γ 3Β²). The factor tree shows how n breaks down; terminal nodes are primes.
Positive integer, up to 12 digits.
Prime factorization
100 = 2^2 Γ 5^2
Factors: 2, 2, 5, 5
Factor tree
Left branch = smallest prime. Right = remaining composite.
PrimesLogic trace
- Step 1100 is even, divide by 2 β 50
- Step 250 is even, divide by 2 β 25
- Step 325 is divisible by 5, divide by 5 β 5
- Step 45 is divisible by 5, divide by 5 β 1
- Step 5: Collect all terminal prime factors2 Γ 2 Γ 5 Γ 5 β 2^2 Γ 5^2
Reading the factor tree and results
Enter one positive integer on the left. The Factorization panel on the right shows power notation and the Factor List; below that come the factor tree and Logic Trace when n β₯ 2.
Worked example at the default (100)
Logic Trace steps
Factor tree layout
Copy results
100 = 2^2 * 5^2 (2, 2, 5, 5) (asterisks in the clipboard string).Prime Factorization Calculator: Factor Tree, Steps & Exponential Form
Trial division with factor tree, Logic Trace, exponential form, and Factor List. Integers up to 12 digits. Runs locally in your browser.
What This Calculator Does
n = p^a * q^b (list). Input: 2β999,999,999,999; 1 is explained, not factored. All math runs in the browser.How the Math Works
How to Use This Calculator
- Enter an integer (n):Single field; digits only, max 12. Default 100.
- Factorization panel:Power notation, Factor List, tags, Copy results.
- Factor tree:Scrollable SVG; Primes legend shows prime node styling.
- Logic trace:Division steps plus final collect β power notation step.
Factor tree vs Logic Trace
FAQ
What is prime factorization?
How do you find the prime factorization of a number?
How do I read the factor tree?
What is the difference between Factor List and exponential form?
100 = 2^2 * 5^2 (2, 2, 5, 5).What is the maximum number I can factor?
Mathematical Reference Note
Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.
Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.
Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.