Prime numbers

Prime numbers are integers greater than 1 with exactly two positive divisors: 1 and the number itself.

Math Calculators

Prime Number Tester & Explorer

Explore interactive step-by-step calculations and visual graphs for these numbers.

Numbers in this Collection

#n (number)Detail
122 is prime
233 is prime
355 is prime
477 is prime
51111 is prime
61313 is prime
71717 is prime
81919 is prime
92323 is prime
102929 is prime
113131 is prime
123737 is prime
134141 is prime
144343 is prime
154747 is prime
165353 is prime
175959 is prime
186161 is prime
196767 is prime
207171 is prime
217373 is prime
227979 is prime
238383 is prime
248989 is prime
259797 is prime
26127127 is prime
27233233 is prime
2815971597 is prime
2981918191 is prime
302865728657 is prime
31131071131071 is prime
32514229514229 is prime
33524287524287 is prime

What Are Prime Numbers?

A prime number is a positive integer strictly greater than 1 that has no positive divisors other than 1 and itself. Integers greater than 1 with three or more positive divisors are called composite numbers:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, …

Primes are the foundational "atoms" of number theory. Just as all matter decomposes into chemical elements, all integers decompose uniquely into prime factors.

The Fundamental Theorem & Distribution

Fundamental Theorem of Arithmetic

n = p₁a₁ × p₂a₂ × … × pₖaₖ

Every integer n > 1 can be represented as a product of prime numbers in exactly one way (ignoring the order of the factors).

The 6k ± 1 Primality Rule

Every prime number p > 3 can be expressed as 6k + 1 or 6k − 1

Because all other numbers modulo 6 (6k, 6k+2, 6k+3, 6k+4) are divisible by 2 or 3, all candidate primes > 3 must sit directly adjacent to multiples of 6.

Prime Number Theorem (PNT)

π(x) ~ x / ln(x)

The total count of primes up to x, denoted π(x), asymptotically approaches x / ln(x) as x grows toward infinity.

Famous Conjectures & Real-World Applications

Infinitude of Primes (Euclid's Theorem)

Proved around 300 BCE by Euclid: assuming a finite list of primes and multiplying them together plus 1 produces a new number not divisible by any prime in the list, proving primes are infinite.

Twin Prime Conjecture

Pairs of primes differing by 2, such as (3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43). Mathematicians conjecture there are infinitely many twin primes.

Goldbach's Conjecture

Stated by Christian Goldbach in 1742: every even integer greater than 2 can be written as the sum of two prime numbers (e.g., 4 = 2+2, 10 = 3+7 = 5+5, 100 = 3+97).

Modern Cryptography (RSA & TLS)

Global digital banking, HTTPS encryption, and blockchain signatures depend on the asymmetric ease of multiplying two large primes versus the extreme difficulty of factoring their composite product.

Frequently Asked Questions

Why is 2 the only even prime number?

Any even integer greater than 2 is divisible by 2, giving it at least three factors (1, 2, and itself), making it composite by definition.

Why is 1 not considered a prime number?

If 1 were prime, prime factorizations would lose their unique representation because any number could be multiplied by 1 indefinitely (e.g. 6 = 2 × 3 = 1 × 2 × 3 = 1 × 1 × 2 × 3).

How fast can you check if a number is prime?

Using trial division, you only need to test divisors up to √n. If no prime factor ≤ √n divides n, then n is guaranteed to be prime.