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