تخطى إلى المحتوى الرئيسي

مدقق الأعداد الأولية

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.

النتيجة

العوامل:

شارك هذه الأداة
Math

حول 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.

كيفية الاستخدام

  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.

الصيغة والمنهجية

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

حالات الاستخدام الشائعة

  • 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

الأسئلة الشائعة

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.

أدوات ذات صلة

أدوات ذات صلة

كل الأدوات →

دمج هذه الأداة في موقعك

مجاني للاستخدام الشخصي والتجاري. فقط انسخ الكود أدناه.