ll d[1+1d5],j,n,c,v;{rd(n,c,v);d[2..1d5]=1d9;rep(i,1,n)for(j=2;j*i<1d5;j++)d[j*i]