← Student tools · Problem 54 · Lecture 10 · Round 2 (30 pts)

COMPOSITES is in NP · certificate is a divisor

Show a non-trivial divisor; verifier multiplies and checks.

CLO-3R2·30 ptsL10
🔊 Listen

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.

Why both COMPOSITES and PRIMES are in P

COMPOSITES ∈ NP (above). PRIMES ∈ NP via Pratt certificates. Both shown ∈ P by AKS (2002). For decades only NP membership was known.

🔊 Listen
Multiply, check, declare Auto-plays
🔊 Listen
🔊 Listen

Sipser: §7.3 (NP examples). AKS paper. Lecture notes: Module 5 slide 2. Companion problems: P21 (verifier vs solver), P22 (SAT).