well, you can reduce any computable problem to that form
see http://en.wikipedia.org/wiki/10th_Hilbert_problem
Whether it is a fast algorithm depends heavily on the sizes of the first and last coefficients, as you have to factorize them.
Whether it is a fast algorithm depends heavily on the sizes of the first and last coefficients, as you have to factorize them.