from collections import defaultdict MOD = 998244353 N, X = [int(s) for s in input().split()] A = [int(s) for s in input().split()] dp = defaultdict(int) dp[X] = 1 for a in A: ndp = defaultdict(int) total = sum(dp.values()) % MOD ndp[a] += total ndp[a] %= MOD for key in dp.keys(): if key % a == 0: ndp[key // a] += dp[key] ndp[key // a] %= MOD dp = ndp print(sum(dp.values()) % MOD)