We're looking for numbers that multiply together to give 15.
We're looking for a pattern in these values that repeats. The number of steps before the pattern repeats is called the "period."
Evaluating up to N values is O(N), which is infeasible for large N.
Shor's algorithm uses quantum superposition to find the period exponentially faster.
The quantum approach finds the period in O((log N)²) steps instead of O(N). This means every possible value is calculated simultaneously rather than one after the other with a delay for each. For values the size used in ECDHE-256 or RSA-2048, this means minutes instead of billions of years!
Current internet security relies on the fact that it's extremely hard for regular computers to find the factors of very large numbers.