atcoder#TENKA12019E. Polynomial Divisors
Polynomial Divisors
Score : points
Problem Statement
You are given a polynomial of degree with integer coefficients: . Find all prime numbers that divide for every integer .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print all prime numbers that divide for every integer , in ascending order.
2
7
-7
14
2
7
and divide, for example, and .
3
1
4
1
5
There may be no integers that satisfy the condition.
0
998244353
998244353