Prime Factorization Calculator

Decompose any number into its prime factors

Factorization Result

360 = 2^3 × 3^2 × 5

Prime Factors

Factor Details

Prime FactorExponentValue
238
329
515
Product360

Understanding Prime Factorization

What Is Prime Factorization?

Prime factorization expresses a number as a product of prime numbers. By the Fundamental Theorem of Arithmetic, every integer greater than 1 has a unique prime factorization (up to ordering).

How It Works

Start dividing by the smallest prime (2) and continue until the quotient is 1. For example: 360 = 2³ × 3² × 5¹. The algorithm tries each prime in ascending order and counts how many times it divides.

The Fundamental Theorem

Every integer n > 1 can be uniquely expressed as n = p₁^a₁ × p₂^a₂ × ... × pₖ^aₖ where each pᵢ is prime and each aᵢ ≥ 1. This uniqueness is why prime numbers are the 'building blocks' of all integers.

Why It Matters

Prime factorization is central to number theory and cryptography. RSA encryption relies on the difficulty of factoring large numbers. It's also used to find GCD, LCM, and simplify fractions.

Applications

Cryptography (RSA, Diffie-Hellman), simplifying fractions, finding GCD and LCM, determining if a number is prime, and solving Diophantine equations.

Practical Example

Factor 360: 360 ÷ 2 = 180, 180 ÷ 2 = 90, 90 ÷ 2 = 45 (no more 2s). 45 ÷ 3 = 15, 15 ÷ 3 = 5 (no more 3s). 5 ÷ 5 = 1. Result: 360 = 2³ × 3² × 5.

Perguntas Frequentes

What is a prime number?

A prime number has exactly two factors: 1 and itself. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23... Every other integer can be built by multiplying primes together.

Why is prime factorization unique?

The Fundamental Theorem of Arithmetic guarantees uniqueness. No matter what order you factor, you always get the same set of primes with the same exponents.

What is the largest number this calculator handles?

JavaScript can handle integers up to 2⁵³ (about 9 × 10¹⁵) exactly. For very large numbers, specialized algorithms like Pollard's rho or quadratic sieve are needed.

How is factorization used in cryptography?

RSA encryption uses the product of two large primes. Encrypting is easy, but decrypting without knowing the factors is practically impossible for large enough numbers (2048+ bits).

What is the difference between GCD and LCM?

GCD = product of shared prime factors with minimum exponents. LCM = product of all prime factors with maximum exponents. For 12 (2²×3) and 18 (2×3²): GCD=6, LCM=36.

Disclaimer: This calculator handles integers. Verify factorizations of very large numbers independently.

References

  1. Wikipedia. "Fundamental theorem of arithmetic." en.wikipedia.org

Comentários