"We present a certain basic algorithm which, given the prime number factorization of, in polynomial time ''on average""( that is ,), finds the set of all such solutions."
In the worst case this set of solutions is exponential in, and so cannot be constructed by a polynomial time algorithm.