#include <iostream>
usingnamespace std;
int main(){
int a;
int b;
cout << "\nenter the first Number : " ;
cin >> a;
cout << "enter the second Number : " ;
cin >> b;
cout << "\n\n\n";
int min = (a<b ? a : b) ;
int max = (a>b ? a : b) ;
int m=0;
if ((max==1 && min==1) || (max==0 && min ==0)){
cout << "I think you are not OK . Maybe you should try later . " ;
}
elseif (min <= 2){
cout << 2 << "\t" ;
++m;
}
for (int k=min ; k<max ; ++k ){
int c = 0;
int v = k%2;
k = (v!=0 ? k : ++k);
for (int i=1 ; i<=(k/2) ; ++i){
int r=k%i;
if(r==0){
c++;
}
}
if (c==1){
cout <<k<<"\t";
m++;
}
}
cout << "\n\n\n";
cout << "The Number of PRIMES between " <<min<<" and " <<max<<" is : "<<m<<"\n\n\n";
return 0;
}