#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000001 int main(){ int N,M; cin>>N>>M; vector a(200005); rep(i,N){ int x; cin>>x; a[x]++; } vector g(a.size()); for(int i=1;i<=200000;i++){ int c = 0; for(int j=i;j<=200000;j+=i)c += a[j]; g[i] = mint(2).pow(c)-1; } for(int i=200000;i>=1;i--){ for(int j=i*2;j<=200000;j+=i)g[i] -= g[j]; } for(int i =1;i<=M;i++){ cout<