Pick a number. Is it prime â divisible only by 1 and itself? For small numbers you just check. Is 7 prime? Yes. Is 91? No (it's 7 Ă 13). The question is so elementary a child can ask it. But asking it about a number with hundreds of digits turns it into one of the most beautiful stories in computer science.
For decades, primality testing sat in a strange limbo. We had fast methods that were probably right, and slow methods that were certainly right, but no fast method that was provably always right. Then, in 2002, three Indian computer scientists â Agrawal, Kayal and Saxena â settled it with the AKS algorithm, proving that primality is in P: decidable in polynomial time.
And here's the twist that makes primes the perfect kipu story: deciding whether a number is prime is easy, but finding its prime factors is (as far as we know) hard. That gap is the foundation of modern cryptography.
Comments
Loading comments...