Show a non-trivial divisor; verifier multiplies and checks.
COMPOSITES = {n : n is composite}. Certificate for n: a non-trivial divisor d (1 < d < n). Verifier: confirm n mod d = 0. Polynomial in log n.
COMPOSITES ∈ NP (above). PRIMES ∈ NP via Pratt certificates. Both shown ∈ P by AKS (2002). For decades only NP membership was known.
Sipser: §7.3 (NP examples). AKS paper. Lecture notes: Module 5 slide 2. Companion problems: P21 (verifier vs solver), P22 (SAT).