n,x=map(int,input().split()) for i in range(2,n+1): if i*i>n: break if n%i==0: c=0 while n%i==0: n//=i c+=1 if c>=x: print("Yes") exit() print("No")