Integer factorization

Can integer factorization be solved in polynomial time on a classical computer?

A special-purpose factoring algorithm's running time depends on the properties of the number to be factored or on one of its unknown factors: size, special form, etc. The parameters which determine the running time vary among algorithms.

In number theory, there are many integer factoring algorithms that heuristically have expected running time

To obtain an algorithm for factoring any positive integer, it is necessary to add a few steps to this algorithm such as trial division, and the Jacobi sum test.