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.