var x,j,c,n,i,ans:longint;f:array[0..2000000]of boolean;
begin
assign(input,'fireshow.in');reset(input);
assign(output,'fireshow.out');rewrite(output);
fillchar(f,sizeof(f),false);
f[0]:=true;
read(c,n);
for i:=1 to c do
begin
read(x);
j:=1;
while j*x<=n do
begin
f[j*x]:=true;
inc(j);
end;
end;
ans:=0;
for i:=1 to n do
if f[i]
then inc(ans);
write(ans);
close(input);close(output);
end.