Zum Inhalt springen
CalculatorsFinder
Mathe-Rechner

Prime Number Calculator

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

  • Sofortige Ergebnisse
  • Schritt für Schritt
  • Privat: läuft in deinem Browser

Zahlen eingeben

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

Ergebnis

360

Not prime

Composite

Prime factorization
2³ × 3² × 5
Next prime
367
Previous prime
359
Number of divisors
24
Berechnung Schritt für Schritt
  1. Divide out primes repeatedly: 2^3 × 3^2 × 5 = 360

Die Erklärung unten ist vorerst nur auf Englisch verfügbar. Der Rechner selbst funktioniert in jeder Sprache gleich.

Über: 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.

Formel und Funktionsweise

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.

Rechenbeispiel

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.

Tipp: Klicke oben im Rechner auf „Beispiel ausprobieren“, um diese Zahlen zu laden.

Dein Ergebnis verstehen

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.

Häufige Fehler vermeiden

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

Häufig gestellte Fragen

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.