Prime Number Checker

-
RangePrimesCount
Under 252 3 5 7 11 13 17 19 239
25 to 4929 31 37 41 43 476
50 to 7453 59 61 67 71 736
75 to 9979 83 89 974

All 25 primes under 100, row by row. The trial-division shortcut: a number n is prime if no prime up to its square root divides it - to check 97 you only need to try 2, 3, 5 and 7, since 9 squared already passes 97. Every 1-digit or 2-digit candidate falls to one of four divisions. Family tools: the prime table for the lists behind the verdicts, the GCD & LCM calculator for the divisibility work underneath, and the factorial calculator for the numbers that grow faster than primes thin out.

Primes are not homework trivia - they are the raw material of public-key cryptography, and the federal digital signature standard (NIST FIPS 186-5) spells out how approved prime generation must work. Every key your bank uses starts with two large primes exactly like the ones this page checks, only thousands of digits long.

The factor family: when the verdict is composite, the prime factorization calculator shows the full breakdown, and the prime table lists the first primes by row.

Enter any whole number to instantly determine whether it is prime or composite. If the number is composite, the calculator reveals its smallest prime factor so you can immediately verify why. Numbers up to 15 digits are evaluated in real time using trial division and deterministic Miller-Rabin algorithms.

Prime numbers are the fundamental building blocks of arithmetic โ€” positive integers divisible strictly by 1 and themselves. They form the backbone of modern public-key cryptography (such as RSA and HTTPS encryption) and play fascinating roles across number theory and nature.

How to use

  1. Enter any whole number (2 or greater) into the input box.
  2. Read the verdict instantly โ€” prime, or composite with its smallest factor displayed.
  3. Explore famous prime candidates, Mersenne numbers (such as 2,147,483,647), or large test integers.

Frequently asked questions

What is a prime number?

A whole number greater than 1 whose only divisors are 1 and itself: 2, 3, 5, 7, 11, 13โ€ฆ Every other number (composites) breaks into prime factors, which is why primes are called the atoms of arithmetic.

Is 1 a prime number?

No โ€” by definition primes need exactly two distinct divisors, and 1 has only one (itself). Mathematicians agreed on this convention precisely so that unique factorization works.

What is the largest known prime number?

The largest known primes are Mersenne primes of the form 2^p โˆ’ 1 โ€” the record has millions of digits and is found by distributed GIMPS projects. This checker handles everyday numbers up to 15 digits instantly.

Why do primes matter outside math class?

Internet encryption (RSA, Diffie-Hellman) is built on the difficulty of factoring huge composite numbers made of two large primes. Every HTTPS connection starts with prime number mathematics.

What are twin primes?

Prime pairs exactly two apart โ€” 11 and 13, 29 and 31, 41 and 43. The twin prime conjecture holds that infinitely many exist; it remains unproven, and the largest known twin primes run hundreds of thousands of digits.

How do I check a large number for primality by hand?

Trial-divide by the primes up to its square root: any candidate under 10,000 needs at most the 25 primes below 100 listed in the table. None divides it, it is prime โ€” this checker automates that logic, handing off to Miller-Rabin for the big ones.

Is 91 prime? It feels prime.

No โ€” 91 = 7 ร— 13, and it is the most-missed trap in primality quizzes because neither factor is obvious and it sits between two genuine primes (89 and 97). The same trap family: 51 = 3 ร— 17, 87 = 3 ร— 29, 119 = 7 ร— 17. The lesson is the trial-division rule โ€” always test primes up to the square root, and for 91 that means 7 lands on the second try.

Are negative numbers or 0 prime?

No โ€” primality is defined for whole numbers greater than 1 only. 0 is divisible by every integer, 1 has a single divisor (itself), and negatives are excluded by definition; -7 factors as -1 ร— 7 and inherits no prime status from the 7. When a problem says 'prime', it means the positive integers 2, 3, 5, 7, 11โ€ฆ

Related tools