n,k=map(int,input().split()) p=[0]*n for i in range(2,n+1): if p[i-1]<1: t=i-1 while t=k for x in p))