The Shor Factoring Algorithm
Learn about the Shor factoring algorithm in quantum computing, which factors a given number in a small number of steps.
We are now ready to look at the Shor factoring algorithm and how it allows us to break the RSA encryption. The key feature is finding the two prime factors of . That would seem to be a relatively straightforward thing to do. We just go through the list of prime numbers less than and find those that divide exactly. Once we have found two factors that are prime numbers, we are done; we could use that information to break the RSA encryption. But, if you think about how many numbers you need to check for large values of , you should be able to convince yourself that the task is hopeless even with today’s supercomputers to help you out. For example, if has digits, we have about prime numbers to try (this is just a rough estimate based on the fact that one of the factors of will be less than . Let’s say that your computer can check one number in seconds. It would then take about seconds to complete the factoring. Of course, you might get lucky and find a factor early on, but on average, it’s going to take a long time.
Get hands-on with 1400+ tech skills courses.