#include<iostream.h>
int interval_prim(int,int);
int main()
{
int a=0,b=0;
cout<<"a:"; cin>>a;
cout<<"b:"; cin>>b;
while(a<b)
{
cout<<interval_prim(a,b)<<" ";
a++;
}
}
int interval_prim(int a,int b)
{
int c=0;
for(int i=a;i<=b;i++)
{
for(int j=1;j<=b;j++)
if(i%j==0)
{
c++;
}
if(c==2)
{
return i;
}
c=0;
}
}