#d2812. 互质

互质

Coprime

Problem Description

You are given a sequence A=(A1,A2,…,An)A = (A_1, A_2, \dots, A_n) of nn positive integers. Find every kk in [1,m][1, m] that satisfies the following condition:

$$\gcd(A_i, k) = 1 \quad \text{for all } 1 \leq i \leq n$$

Input Format

The first line contains two integers nn and mm.

The second line contains nn integers giving the sequence AA.

Output Format

The first line outputs the number of valid kk's. Then each following line outputs one valid kk.

Sample Input

3 12
6 1 5

Sample Output

3
1
7
11

Constraints

1≤n,m≤1000001 \leq n, m \leq 100000

1≤ai≤1000001 \leq a_i \leq 100000