#include using namespace std; long L,H; int divv[4<<20]; bool isp[1<<17]; long fac(long X) { if(X%2==0)return 2; for(long i=3;i*i<=X;i+=2)if(X%i==0)return i; return X; } main() { cin>>L>>H; for(int i=2;i<1<<17;i++)isp[i]=true; long i; for(i=2;i*i<=H;i++)if(isp[i])for(long j=i+i;j*j<=H;j+=i)isp[j]=false; long ans,ansp=0; for(;--i>=2;) { if(!isp[i])continue; if(ansp>i)break; for(long j=H/i;i*j>=L&&j>=i;j--) { long k=fac(j); if(k>i)k=i; if(ansp