Mathematics · Glossary

What is Prime?

Also known as: prime number

Definition 29.13 High School Mathematics · Chapter 29 — Arithmetic

An integer p2p \geq 2 is prime if its only positive divisors are 11 and pp.

Examples

Example 29.18 (Application to cryptography)

Fermat’s theorem makes exponentiation modulo nn reversible when the exponents are chosen suitably — the heart of the RSA cryptosystem. With p,qp, q large primes and n=pqn = pq, one publishes nn and an exponent ee; encryption is xxemodnx \mapsto x^e \bmod n. Decrypting requires an exponent dd with ed1(mod(p1)(q1))ed \equiv 1 \pmod{(p-1)(q-1)}, which only someone knowing pp and qq can compute — and recovering p,qp, q from nn means factoring a number hundreds of digits long, which no known algorithm does in reasonable time.

Read in context →