Score : 800 points
You are given a polynomial of degree N with integer coefficients: f(x)=a_Nx^N+a_{N-1}x^{N-1}+...+a_0. Find all prime numbers p that divide f(x) for every integer x.
Input is given from Standard Input in the following format:
N a_N : a_0
Print all prime numbers p that divide f(x) for every integer x, in ascending order.
2 7 -7 14
2 7
2 and 7 divide, for example, f(1)=14 and f(2)=28.
3 1 4 1 5
There may be no integers that satisfy the condition.
0 998244353
998244353