#include<conio.h>
#include<stdio.h>
void main()
{
int num1,num2,i,j,temp;
printf("enter the two number:\n");
scanf("%d %d",&num1,&num2);
for(i=num1+1;i<num2;i++){ // interval between two numbers
temp=0;
for(j=2;j<=i/2;++j){ //checking number is prime or not
if(i%j==0){
temp=1;
break;
}
}
if(temp==0)
printf("%d\n",i);
}
getch();
}