F

#### freeday

#include<math.h>

void prime(int,int);

void main()

{

int min ,max;

cout<<"min: ";

cin>>min;

cout<<"max: ";

cin>>max;

prime(min,max);

}

void prime(int min,int max)

{

int i,j,k;

for(i=min;i<=max;i+=1)

{

k=int (sqrt(double(i)));

for(j=2;j<=k;j++)

if(i%j==0)

break;

if(j>=k+1 && i!=1)

cout<<' '<<i;

}

cout<<endl;

}