import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) throws FileNotFoundException { long t = System.currentTimeMillis(); new Main().run(); System.err.println(System.currentTimeMillis() - t); } long pow(long a,long n) { long ret=1; for(;n>0;n>>=1,a*=a)if(n%2==1)ret*=a; return ret; } void run() { Scanner sc = new Scanner(); int N=sc.nextInt(); int K=sc.nextInt(); int[] pdivs=new int[N]; int[] divs=new int[N]; long N_=N; for(long d=2;d<=N_;++d) { if(N_%d!=0)continue; int e=0; while(N_%d==0) { N_/=d;++e; } if(e==0)continue; for(int i=1;i<=e;++i) { long ps=pow(d,i); for(long j=ps;j=K&&divs[ans]