What is Shor's algorithm
Shor's algorithm is a quantum algorithm that factors large numbers into primes. RSA, the scheme behind HTTPS, digital signatures and card payments, relies on that being hard. Multiplying two large primes is easy, but factoring the result back is very hard: RSA-2048 uses a 617-digit number that classical computers couldn't factor within the age of the universe.
In 1994 mathematician Peter Shor of Bell Labs noticed that factoring can be reduced to finding a rhythm (a period) in remainders. A quantum computer finds that rhythm using superposition and the quantum Fourier transform. But breaking RSA needs a large error-corrected computer: estimates fell from about 20 million physical qubits in 2019 to under a million in May 2025. Today's best chips have thousands of qubits, and their quality isn't there yet.
Covered in the lessonShor’s algorithm and RSAOpen the lesson →