#include<iostream.h>
#include<conio.h>
int asalmi(int a)
{
int i;
char asal=''''E'''';
for(i=2; i<a; i++)
{
if((a%i)==0)
{
asal=''''H'''';
break;
}
}
if(asal==''''H'''')return 0;
if(a==2)return 1;
if(asal==''''E'''')return 1;
}
void asal_ara(int a,int b)
{
int i;
for(i=a; i<=b; i++)
{
if(asalmi(i)==1){cout<<i<<"\t";}
else continue;
}
}
main()
{
int a,b;
cout<<"alt sinir:";
cin>>a;
cout<<"ust sinir:";
cin>>b;
asal_ara(a,b);
getch();
}
turan murat guvenc
muratg_5@hotmail.com