THE REFERENCE DESK

A little clarity.
A lot of possibility.

A quick guide to the language of primes, and trusted places to continue your journey.

Find a question, not just a page

Your map of
the prime universe.

Browse the topic cards, or type to filter.

What is a prime?Beginner · Divisors, composites, and the unit 1. Why primes matterBeginner · Arithmetic building blocks and purpose. Factor trees & totientsInteractive · Unique factorization and divisor counts. GCD, LCM & EuclidInteractive · Coprimality, fractions, repeated cycles. Proof workshopBeginner → Intermediate · Square roots, Euclid's lemma, infinite primes. History of prime numbersAncient sieves to distributed GPU discoveries. Primality algorithmsSieve, Miller-Rabin, AKS, probability versus proof. Computational toolkitSegmented sieves, factoring, certificates, Lucas-Lehmer. Special prime familiesMersenne, Fermat, Sophie Germain, safe, palindromic. Prime gaps & twin primesBounds, arbitrarily long gaps, and computational records. The Prime Number TheoremInteractive · Exact counts versus x / ln(x). Ulam spiralInteractive · Geometric patterns and quadratic sequences. Goldbach conjectureInteractive · Additive primes, evidence versus proof. Modular arithmetic & finite fieldsInteractive · Clocks, inverse pairs, Fermat, Carmichael numbers. Zeta & Euler's productInteractive · Sum, product, convergence, and harmonics. Primes in arithmetic progressionsInteractive · Dirichlet's theorem, residues, Green–Tao. Beyond the integersAdvanced · p-adics, Gaussian integers, prime ideals, L-functions. Cryptography: inside RSAInteractive · A teaching-only encryption and decryption round trip. QR codes & elliptic curvesFinite fields, Reed–Solomon codes, secret sharing. Primes in computingHashing, number-theoretic transforms, Chinese remainders. The post-quantum transitionShor's algorithm, NIST standards, and limitations. Research updates 2024–2026Guth–Maynard, Gafni–Tao, GIMPS, and PrimeGrid. How to read research claimsProof, preprint, computation, heuristic, and open problem. Exact prime analyzerAll divisors, nearest primes, and gaps up to 100 trillion. Graph lab & learning gamesBeginner-friendly · Connected numbers, prime sweep, factor forge, and path quests.

01 / Ideas, decoded

The A–Z glossary.

Type to narrow the glossary.

AKS
The Agrawal–Kayal–Saxena test: an unconditional, deterministic algorithm that decides primality in time polynomial in the number of input digits.
Arithmetic progression
A sequence with a constant difference between successive terms. Dirichlet's and Green–Tao's theorems describe different ways primes occur in these sequences.
Asymptotic
Describes a limiting relationship as a parameter grows. f(x) ∼ g(x) means their ratio approaches 1, not that their difference approaches zero.
Carmichael number
A composite n satisfying an−1 ≡ 1 (mod n) for every integer a coprime to n. The smallest example is 561.
Composite
An integer greater than 1 with more than two positive divisors. For example, 12 = 3 × 4.
Coprime
Two integers whose greatest common divisor is 1. They need not individually be prime.
Divisor
An integer that divides another with no remainder. Our analyzer lists positive divisors, including 1 and the input itself.
Fermat's Little Theorem
For a prime p and any integer a, ap ≡ a (mod p). Do not confuse this with Fermat's Last Theorem.
Fermat number
A number of the form 22n + 1 for a nonnegative integer n. The first five are prime, but not all are.
Finite field
A finite arithmetic system with addition, subtraction, multiplication, and division by nonzero elements. Its size is always a prime power.
Fundamental Theorem of Arithmetic
Every integer greater than 1 is a product of primes in exactly one way, apart from the order of the factors.
GIMPS
The Great Internet Mersenne Prime Search: a distributed computing project founded in 1996 to find Mersenne primes.
Goldbach conjecture
The strong form says every even integer at least 4 is the sum of two primes. It is unproved; the related odd three-prime statement is a theorem.
Greatest common divisor
The largest positive integer dividing both inputs, often calculated efficiently with Euclid's algorithm.
L-function
An analytic object encoding arithmetic information, often through a series and Euler product. Zeta and Dirichlet L-functions are examples.
Lucas-Lehmer test
A deterministic test for Mersenne numbers with prime exponents. For odd prime p, iterate s → s² − 2 starting at 4, modulo 2p − 1; a zero after p − 2 iterations proves primality.
Mersenne prime
A prime of the form 2p − 1. Examples include 3, 7, 31, and 127. A prime exponent is necessary but not sufficient.
Miller-Rabin
A primality test using modular exponentiation. Failed rounds prove compositeness; passing random rounds generally establishes probable primality, not a proof.
Modular arithmetic
Arithmetic with remainders. Writing a ≡ b (mod m) means a and b have the same remainder when divided by m.
Multiplicative inverse
A value b with ab ≡ 1 (mod m). It exists exactly when gcd(a, m) = 1.
p-adic number
A number in a completion based on divisibility by powers of a fixed prime p, rather than ordinary real absolute distance.
Perfect number
A positive integer equal to the sum of its positive proper divisors. Every even perfect number corresponds to a Mersenne prime.
Prime
A positive integer greater than 1 with exactly two positive divisors: 1 and itself.
Prime gap
The difference between consecutive primes. A gap of g has g − 1 integers strictly between its endpoints.
Prime Number Theorem
The number of primes at most x is asymptotic to x / ln(x): the ratio approaches 1 as x grows without bound.
Probable prime
An integer passing a specified test that every prime in the test's domain passes, but that some composites can also pass.
Pseudoprime
A composite that passes a particular probable-prime test. Always specify the test or base; being an impostor in one test does not mean passing them all.
Riemann Hypothesis
The unproved statement that every nontrivial zero of the Riemann zeta function has real part 1/2.
Safe prime
A prime q for which (q − 1)/2 is also prime. Not the same as a guarantee that any use of q is cryptographically safe.
Sieve of Eratosthenes
An algorithm that lists primes up to a limit by crossing out multiples of primes starting from their squares.
Sophie Germain prime
A prime p for which 2p + 1 is also prime.
Totient
Euler's φ(n), the count of integers from 1 through n coprime to n. If p is prime, φ(p) = p − 1.
Twin primes
Two primes differing by exactly 2, such as 17 and 19. Whether there are infinitely many pairs is still unknown.
Ulam spiral
An arrangement of integers on an outward square spiral, often with primes highlighted to expose visual patterns.
Unit
In the positive integers, 1. It is the multiplicative identity and is neither prime nor composite.
Zeta function
For real s > 1, ζ(s) = ∑ n−s. Its extension to complex inputs and its zeros reveal deep information about the distribution of primes.

Choose your depth

Three routes
through the material.

New to primes

  1. Definitions, divisors, and why 1 is special.
  2. Factor trees and Euclid's algorithm.
  3. The animated sieve and exact analyzer.
  4. Prime-count and Goldbach experiments.
  5. Applications and common misconceptions.
Start with the foundations ↗

Ready for proofs

  1. Unique factorization and Euclid's lemma.
  2. Modular inverses, Fermat, and Euler.
  3. Algorithms and certificates.
  4. Residue classes and Dirichlet's theorem.
  5. Zeta's convergent Euler product.
Open the advanced guide ↗

Research curious

  1. Prime-counting asymptotics.
  2. Complex analysis and zeta zeros.
  3. Zero density and short intervals.
  4. Additive number theory and prime patterns.
  5. Original papers with exact hypotheses.
Read the research desk ↗

02 / Follow your curiosity

Go to the source.

This is an educational, static website. Mathematical records may change after the dates shown. The analyzer's nearest-prime search uses exact BigInt modular arithmetic and Miller-Rabin bases 2, 3, 5, 7, 11, 13, and 17, deterministic below 341,550,071,728,321. Its search stays below 200 trillion, including the next prime above the input limit. A prime input is excluded from its own neighbors; its surrounding span combines two gaps. No calculator input is sent to a server. The interface loads Google Fonts; if unavailable, system fonts are used.

← Choose your next levelMake a discovery of your own ↗