n, k= gets.chomp.split.map(&:to_i)
d = gets.chomp.split.map(&:to_i)

res = 0

if n == 1
	res = d[0]
elsif n == 2
	res = d[0].lcm(d[1])
else
	res = d[0].lcm(d[1])
	i = 3
	while i < n
	  res = d[i].lcm(res)
	  i += 1
    end
end

if res > k
	puts 0
else
   puts (k/res)+1
end