Saltar al contenido
CalculatorsFinder
Calculadoras de matemáticas

Prime Number Calculator

Check whether a number is prime, see its prime factorization and find the nearest primes.

  • Resultados al instante
  • Paso a paso
  • Privado: se ejecuta en tu navegador

Introduce tus números

Up to 1,000,000,000,000.

Resultado

360

Not prime

Composite

Prime factorization
2³ × 3² × 5
Next prime
367
Previous prime
359
Number of divisors
24
Cálculo paso a paso
  1. Divide out primes repeatedly: 2^3 × 3^2 × 5 = 360

La explicación de abajo solo está disponible en inglés por ahora. La calculadora funciona igual en todos los idiomas.

Acerca de: Prime Number Calculator

A prime number is a whole number greater than 1 whose only divisors are 1 and itself. Every other whole number above 1 is composite and can be written as a product of primes, which is its prime factorization.

Enter a number up to one trillion to test it, factor it, and find the primes either side of it.

Fórmula y cómo funciona

n is prime if no integer d with 2 ≤ d ≤ √n divides n

Fundamental theorem of arithmetic: n = p₁^a × p₂^b × …

Testing divisors only up to the square root is enough, because any larger factor pairs with a smaller one. The number of divisors is the product of (exponent + 1) over all prime factors.

Ejemplo resuelto

Factor 360

360 = 2³ × 3² × 5, so it has (3+1)(2+1)(1+1) = 24 divisors. The next prime after 360 is 367 and the previous is 359.

Consejo: pulsa “Probar ejemplo” en la calculadora de arriba para cargar estos números.

Cómo interpretar tu resultado

2 is the only even prime. 1 is neither prime nor composite by convention.

Prime factorizations are unique and are the basis of GCF, LCM and fraction simplification.

Errores comunes que evitar

  • Calling 1 a prime number.
  • Assuming odd numbers are always prime (9, 15 and 21 are not).
  • Stopping the divisor search too early.

Preguntas frecuentes

Is 1 a prime number?

No. A prime must have exactly two distinct positive divisors.

What is the only even prime?

2.

How is prime factorization used?

To find GCFs and LCMs, simplify fractions and in cryptography.