Passer au contenu principal

Vérificateur de nombres premiers

A prime number is divisible only by 1 and itself — the building blocks of all integers via the Fundamental Theorem of Arithmetic. Our prime checker not only tells you if a number is prime but shows the complete trial-division proof, lists nearby primes, and provides prime factorization for composite numbers.

Résultat

Facteurs :

Partager cet outil
Math

À propos de Prime Number Checker

A prime number is divisible only by 1 and itself — the building blocks of all integers via the Fundamental Theorem of Arithmetic. Our prime checker not only tells you if a number is prime but shows the complete trial-division proof, lists nearby primes, and provides prime factorization for composite numbers.

Comment l'utiliser

  1. Enter any positive integer.
  2. Instantly see whether it is prime or composite.
  3. For composites, see the complete prime factorization.
  4. View the nearest prime numbers above and below.
  5. Generate a list of all primes up to a given limit using the Sieve of Eratosthenes.

Formule et méthodologie

Trial division: test divisibility by all primes up to √n. If none divide n, n is prime. Prime factorization: repeatedly divide by the smallest prime factor. Example: 360 = 2³ × 3² × 5. Number of primes below n ≈ n / ln(n) (Prime Number Theorem).

Cas d'usage courants

  • RSA encryption relies on the difficulty of factoring large primes
  • Hash table sizing (prime-sized tables reduce collision clustering)
  • Verifying primality for number theory homework
  • Competitive programming: sieve algorithms
  • Generating cryptographically strong random numbers

Questions fréquentes

No. By mathematical convention, 1 is neither prime nor composite. The definition requires exactly two distinct divisors (1 and itself). The number 1 has only one divisor. This exclusion is necessary so that prime factorization remains unique (Fundamental Theorem of Arithmetic).
As of 2024, the largest known prime is 2^136,279,841 − 1, discovered by GIMPS (Great Internet Mersenne Prime Search) in October 2024. It has over 41 million digits. Mersenne primes (of the form 2^p − 1) are the focus of the world's largest prime-hunting distributed computing project.

Outils connexes

Outils connexes

Tous les outils →

Intégrer cet outil sur votre site

Gratuit pour usage personnel et commercial. Copiez simplement le code ci-dessous.