Skip to calculator
Calculover Logo CALCULOVER
Home
Finance
Real Estate Investing Planning Tax & Income Loans & Debt Retirement
Construction
Materials Outdoor HVAC Electrical Flooring & Walls Roofing Landscaping Plumbing
Health
Fitness & Performance Weight Loss Diet & Nutrition Women's Health Clinical Tools Mental Health & Sleep
Business
Sales & Revenue Marketing Metrics SaaS Metrics Operations HR & Payroll
Daily
Food & Cooking Time & Date Hobbies Clothing Tech & Tools Pets Converters Automotive Home & Energy Entertainment Travel
Math
School General Math Unit Converters Geometry Statistics Physics
Legal
Insurance Personal Finance Family Law
Education
Academic Tools
Environment
Carbon & Emissions Solar & Energy Water Recycling Food & Waste
Sports
Running & Racing Hiking Weightlifting Baseball
Tools
PDF Tools Image Tools Developer Tools Text & Number Utilities
Resources About
Home › Math & Science › General Math › Prime Factorization Calculator

Prime Factorization Calculator

Factorize any integer, check primality, find GCD & LCM, and visualize the factor tree.

Input
Presets
Result
2³ × 3² × 5
Prime Factorization of 360
Distinct Primes
3
Total Divisors
24
Smallest Prime
2
Largest Prime
5
Step-by-Step
Factor Tree of 360

Prime factors shown in circles; composite nodes in rounded squares.

Factor tree not available for this operation. Switch to the Calculator tab first.

All Divisors of 360
24 Total Divisors
810 Sum of Proper Divisors
Abundant Number Type
How to Use Formula Key Terms Examples Article FAQ Keep Exploring
๐Ÿ“‹
Walk-through

How to Use This Calculator

1

Enter a Number

Type any integer from 2 to 1,000,000,000 into the Number field, or click a preset (360, 1001, 1,000,000) to load an example.

2

Select an Operation

Choose from Prime Factorization, Is Prime?, GCD (Greatest Common Divisor), LCM (Least Common Multiple), or List Primes Up To N. For GCD and LCM, enter a second number too.

3

Read the Result

The result card shows the answer with step-by-step work. Switch to Factor Tree to see a visual breakdown, or All Factors for the complete list of divisors.

โšก
Reference

Formula & Methodology

Prime Factorization
n = pโ‚^eโ‚ ร— pโ‚‚^eโ‚‚ ร— ... ร— pโ‚–^eโ‚–

Every integer greater than 1 can be expressed as a unique product of prime powers. This is the Fundamental Theorem of Arithmetic.

Number of Divisors
ฯ„(n) = (eโ‚ + 1)(eโ‚‚ + 1)ยทยทยท(eโ‚– + 1)

Given the prime factorization n = pโ‚^eโ‚ ร— pโ‚‚^eโ‚‚ ร— โ€ฆ ร— pโ‚–^eโ‚–, the total number of divisors is the product of each exponent plus one.

GCD โ€” Euclidean Algorithm
gcd(a, b) = gcd(b, a mod b)

Repeat the step gcd(a, b) = gcd(b, a mod b) until b = 0. The last non-zero remainder is the GCD.

LCM via GCD
lcm(a, b) = |a ร— b| / gcd(a, b)

Compute the GCD first, then divide the product of the two numbers by their GCD to get the LCM.

Primality Test
Test divisors d from 2 to โŒŠโˆšnโŒ‹

A number n is prime if no integer from 2 to โˆšn divides it evenly. Trial division is O(โˆšn) โ€” fast for numbers up to 10โน.

๐Ÿ“–
Glossary

Key Terms Explained

Prime Number A natural number greater than 1 that has no positive divisors other than 1 and itself. Examples: 2, 3, 5, 7, 11, 13.
Prime Factorization The expression of a composite number as a product of its prime factors. Example: 360 = 2ยณ ร— 3ยฒ ร— 5.
Factor Tree A visual diagram that shows how a number is broken down into smaller factors until all branches end in prime numbers.
GCD (Greatest Common Divisor) The largest positive integer that divides two or more integers without a remainder. Also called HCF (Highest Common Factor).
LCM (Least Common Multiple) The smallest positive integer that is divisible by two or more integers. Used to add fractions and solve scheduling problems.
Composite Number A positive integer greater than 1 that has at least one positive divisor other than 1 and itself.
Divisor An integer that divides another integer exactly without leaving a remainder. For example, the divisors of 12 are 1, 2, 3, 4, 6, and 12.
Sieve of Eratosthenes An ancient algorithm for finding all primes up to a given limit. It iteratively marks multiples of each prime as composite, leaving only primes unmarked.
๐Ÿ‘ฅ
Scenarios

Real-World Examples

๐Ÿ“„
Deep Dive

Understanding Prime Factorization

❓
Questions

Frequently Asked Questions

What is prime factorization used for?+

Prime factorization is used to simplify fractions, find GCDs and LCMs, solve divisibility problems, and forms the basis of RSA public-key cryptography. It also helps determine whether a number is a perfect square, perfect cube, or abundant/deficient number.

What is the difference between GCD and LCM?+

GCD (Greatest Common Divisor) is the largest integer that divides both numbers. LCM (Least Common Multiple) is the smallest integer divisible by both. They are related by: GCD ร— LCM = a ร— b. GCD is used to simplify fractions; LCM is used to add them.

How do you check if a number is prime?+

Test whether any integer from 2 to โˆšn divides n. If none do, n is prime. For n = 1,000,000,000, you need to check up to โˆš10โน โ‰ˆ 31,623 divisors โ€” fast enough to compute in milliseconds.

What is the largest prime this calculator can handle?+

This calculator handles integers up to 1,000,000,000 (10โน). For prime checking and factorization, trial division up to โˆšn is used, which is efficient for this range.

What does the factor tree show?+

The factor tree breaks a composite number into two factors repeatedly until all branches end in prime numbers (shown in circles). The primes at the bottom of all branches are the prime factors of the original number.

What are abundant, deficient, and perfect numbers?+

A perfect number equals the sum of its proper divisors (e.g., 6 = 1+2+3). An abundant number is less than this sum (e.g., 360, where the proper divisor sum is 810). A deficient number is greater than this sum (e.g., any prime).

๐Ÿงญ
Next Steps

Keep Exploring

Related calculators

Guides & articles

Calculover Calculover

495 calculators across 11 categories. No signup required.

Popular Tools

  • Mortgage Calculator
  • BMI Calculator
  • TDEE Calculator
  • Profit Margin
  • Concrete Calculator
  • Percentage Calculator

Resources

  • Resources Hub
  • Blog
  • Guides
  • Glossary
  • Compare
  • Topics

Company

  • About
  • Privacy Policy
  • Disclosure
  • Terms of Use
  • Contact
© 2026 Calculover. Made for the people who like to get the number right.