This account already has saved data. Do you want to keep this device's data, or use your account's saved data?
Appearance
Unit System
Temperature Format
Time Format
Prime Factorization
Prime Factorization
The Numbers
Analysis
Prime Factorization
The Numbers
Analysis
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Breaking a Number Down Into Its Prime Building Blocks
Every whole number greater than 1 can be broken down into a unique set of prime numbers
multiplied together — its prime factorization. Enter a whole number, and this calculator finds
that factorization instantly, along with whether the number itself is prime.
The Formula
The Fundamental Theorem of Arithmetic guarantees every whole number N greater than 1 has
exactly one prime factorization, up to the order the factors are written in:
N=p1a1×p2a2×⋯×pkak
where each pi is a distinct prime number and each ai is how many times that
prime divides evenly into N.
This calculator finds that factorization using trial division: starting at 2, it repeatedly
checks whether each number divides evenly into what’s left, dividing it out (and counting how
many times) whenever it does, then moving to the next candidate. Once a candidate’s square
exceeds what remains, anything still left over must itself be prime — any smaller factor would
already have been found:
if d2>remaining value, then remaining value is prime
Worked Example
Finding the prime factorization of 360:
360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45 (2 divides in 3 times; 45 is odd, so move on).
45 ÷ 3 = 15, ÷ 3 = 5 (3 divides in 2 times; 5 isn’t divisible by 3 again).
5 remains, and no further divisor’s square is ≤ 5, so 5 itself is prime.
Result: 2³ × 3² × 5.
Key Factors to Consider
Every prime factorization is unique — this is exactly what the Fundamental Theorem of
Arithmetic guarantees. No matter how a number is broken down, its prime factorization always
comes out the same (aside from the order the factors are written in), which is why prime
factorization is such a fundamental building block across number theory.
Prime factorization is the mechanism behind finding a Greatest Common Factor or Least Common
Multiple by hand. Comparing two numbers’ prime factorizations directly reveals their GCF (the
shared prime factors, at the lower shared exponent) and LCM (every prime factor, at the higher
exponent) — see the GCF/LCM Calculator for that specific comparison.
Factoring large numbers gets computationally much harder as the number of digits grows,
which is the basis for some encryption methods. Trial division (the method used here) works
well for numbers people typically enter by hand, but factoring a very large number with hundreds
of digits can be computationally infeasible even for powerful computers — this difficulty
is exactly what underlies RSA encryption’s security.
A prime number has exactly one prime factor: itself, to the first power. This is why this
calculator’s “is this number prime” check falls directly out of the factorization process —
if trial division never finds a factor smaller than the number’s own square root, the number
has no factorization other than itself.
Common Mistakes
Confusing prime factorization with a full list of factors. 12’s factors are 1, 2, 3, 4, 6,
and 12, but its prime factorization is only 2² × 3 — prime factorization keeps only the prime
building blocks, not every number that divides evenly.
Treating 1 as a prime number. By definition a prime number has exactly two distinct
divisors (1 and itself) — 1 has only one, so it’s neither prime nor composite and never
appears in a prime factorization.
Losing track of repeated prime factors. 8’s prime factorization is 2³, not just “2” —
forgetting how many times a prime divides in changes the number the factorization actually
represents.
Simplifying a fraction to its lowest terms? Fraction Calculator uses the same shared
prime factors this calculator finds.
Working with a very large or very small number instead? Scientific Notation Calculator
converts between standard and scientific notation.
Cómo se Descompone un Número en sus Bloques Primos
Todo número entero mayor que 1 puede descomponerse en un conjunto único de números primos
multiplicados entre sí — su factorización prima. Ingresa un número entero, y esta calculadora
encuentra esa factorización al instante, junto con si el número en sí es primo.
La fórmula
El Teorema Fundamental de la Aritmética garantiza que todo número entero N mayor que 1 tiene
exactamente una factorización prima, sin importar el orden en que se escriban los factores:
N=p1a1×p2a2×⋯×pkak
donde cada pi es un número primo distinto y cada ai es cuántas veces ese primo
divide de forma exacta a N.
Esta calculadora encuentra esa factorización usando división por tanteo: comenzando en 2,
comprueba repetidamente si cada número divide de forma exacta lo que queda, dividiéndolo (y
contando cuántas veces lo hace) cada vez que sí lo logra, y luego pasa al siguiente candidato. Una
vez que el cuadrado de un candidato supera lo que queda, cualquier resto restante debe ser en sí
mismo primo — cualquier factor menor ya se habría encontrado:
si d2>valor restante, entonces valor restante es primo
Ejemplo resuelto
Encontrar la factorización prima de 360:
360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45 (2 divide 3 veces; 45 es impar, así que se avanza).
45 ÷ 3 = 15, ÷ 3 = 5 (3 divide 2 veces; 5 ya no es divisible entre 3).
Queda 5, y el cuadrado de ningún divisor adicional es ≤ 5, así que 5 en sí mismo es primo.
Resultado: 2³ × 3² × 5.
Factores Clave a Considerar
Toda factorización prima es única — esto es exactamente lo que garantiza el Teorema
Fundamental de la Aritmética. Sin importar cómo se descomponga un número, su factorización
prima siempre resulta igual (aparte del orden en que se escriban los factores), razón por la cual
la factorización prima es un elemento tan fundamental en toda la teoría de números.
La factorización prima es el mecanismo detrás de encontrar un Máximo Común Divisor o Mínimo
Común Múltiplo a mano. Comparar las factorizaciones primas de dos números directamente revela
su MCD (los factores primos compartidos, al exponente compartido más bajo) y su MCM (cada factor
primo, al exponente más alto) — consulta la Calculadora de MCD/MCM para esa comparación
específica.
Factorizar números grandes se vuelve computacionalmente mucho más difícil a medida que crece
el número de dígitos, lo cual es la base de algunos métodos de encriptación. La división por
tanteo (el método usado aquí) funciona bien para los números que la gente típicamente ingresa a
mano, pero factorizar un número muy grande con cientos de dígitos puede ser computacionalmente
inviable incluso para computadoras potentes — esta dificultad es exactamente lo que sustenta la
seguridad de la encriptación RSA.
Un número primo tiene exactamente un factor primo: él mismo, a la primera potencia. Esta es
la razón por la que la verificación de “si este número es primo” de esta calculadora surge
directamente del proceso de factorización — si la división por tanteo nunca encuentra un factor
menor que la raíz cuadrada propia del número, el número no tiene factorización distinta de sí
mismo.
Errores Comunes
Confundir la factorización prima con una lista completa de factores. Los factores de 12 son
1, 2, 3, 4, 6 y 12, pero su factorización prima es solo 2² × 3 — la factorización prima
conserva únicamente los bloques primos, no todo número que divide de forma exacta.
Tratar el 1 como un número primo. Por definición, un número primo tiene exactamente dos
divisores distintos (1 y él mismo) — el 1 solo tiene uno, por lo que no es primo ni compuesto y
nunca aparece en una factorización prima.
Perder de vista los factores primos repetidos. La factorización prima de 8 es 2³, no solo
“2” — olvidar cuántas veces divide un primo cambia el número que la factorización realmente
representa.
Bueno Saber
¿Necesitas el Máximo Común Divisor o el Mínimo Común Múltiplo de dos números en lugar de los
factores propios de un número? Calculadora de Máximo Común Divisor y Mínimo Común Múltiplo compara directamente las
factorizaciones primas de dos números.
¿Estás simplificando una fracción a su mínima expresión? Calculadora de Fracciones usa los
mismos factores primos compartidos que encuentra esta calculadora.
¿Trabajas en cambio con un número muy grande o muy pequeño? Calculadora de Notación Científica convierte entre notación estándar y notación científica.
Prime factorization breaks a whole number down into the prime numbers that multiply together to make it — every whole number greater than 1 has exactly one such breakdown (the "fundamental theorem of arithmetic"). For example, 12 = 2 × 2 × 3.
How do I know if a number is prime?
A prime number has no factors other than 1 and itself. This calculator's factorization will show just that one number (with no other factors) whenever the number you entered is prime — the Analysis section states this directly.
Is there a limit to how large a number I can factor?
This calculator uses trial division, which works well for the range of numbers a typical calculator use case involves, but becomes slow for extremely large numbers (the kind used in cryptography), which need much more sophisticated algorithms.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.