There is a polynomial time algorithm, it's just impractical at the moment
https://en.wikipedia.org/wiki/Shor%27s_algorithm
Polynomial time in BQP is not the same as P (i.e., you cannot run Shor's algorithm on a classical computer in polynomial time). AFAIU it is not yet known whether BQP includes NP problems or if it only includes P problems.
That's what people mean when they say quantum computers will crack RSA. It's unrelated to AI.
Polynomial time in BQP is not the same as P (i.e., you cannot run Shor's algorithm on a classical computer in polynomial time). AFAIU it is not yet known whether BQP includes NP problems or if it only includes P problems.