#include using namespace std; #define rep(i,a,b) for(ll i=a;i=b;i--) #define ll long long #define ull unsigned ll #define ld long double #define bl __int128_t #define fi first #define se second #define vel vector #define vvel vector #define pll pair #define vepll vector #define vvepll vector #define ves vector #define vem vector #define vvem vector #define pmm pair #define cleout(i) cout<using PQ=priority_queue,greater>; // 上 右 下 左 vector di={-1, 0, 1, 0}; vector dj={ 0, 1, 0,-1}; vector dx={ 0, 1, 0,-1}; vector dy={ 1, 0,-1, 0}; vector ddx={ 1, 1, 1, 0, -1, -1, -1, 0 }; vector ddy={ 1, 0, -1, -1, -1, 0, 1, 1 }; ll inf=1000000000000000000;//1e18 // LLONG_MAX mt19937_64 rng((ull)chrono::steady_clock::now().time_since_epoch().count()); struct mint{ ll num; static ll P; static void set_mod(ll MOD){ P=MOD; } mint(ll x=0){ if(x<0){ x*=-1; x%=P; x=P-x; } x%=P; num=x; } mint operator+(const mint &other)const{ return mint(num+other.num); } mint operator-(const mint &other)const{ return mint(num-other.num); } mint operator*(const mint &other)const{ return mint(num*other.num); } mint &operator+=(const mint &other){ num+=other.num; if(num>=P) num-=P; return *this; } mint &operator-=(const mint &other){ num-=other.num; if(num<0) num+=P; return *this; } mint &operator*=(const mint &other){ num=(num*other.num)%P; return *this; } mint beki(const ll &x)const{ ll pos=x; mint res=1; mint now=num; while(pos){ if(pos&1){ res*=now; } now*=now; pos/=2; } return res; } mint inv()const{ mint res=1; mint now=num; rep(i,0,30){ if((P-2)&(1ll<>(istream& is,mint& m){ ll x; is>>x; m=mint(x); return is; } }; ll mint::P=998244353; //ll mint::P=1000000007; void _solve(){ ll N,X; cin>>N>>X; vel a(N); rep(i,0,N)cin>>a[i]; map ma; ma[X]=1; rep(i,0,N){ map nma; for(auto it=ma.begin();it!=ma.end();it++){ if(it->fi%a[i]!=0){ nma[a[i]]+=it->se; }else{ nma[a[i]]+=it->se; nma[it->fi/a[i]]+=it->se; } } swap(ma,nma); } mint ans=0; for(auto it=ma.begin();it!=ma.end();it++){ ans+=it->se; } cout<>_; else _=1; rep(__,0,_){ _solve(); } }