#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{ int p,i,q,S;
cout<<„Unesi prvi broj „;
cin>>p;
cout<<„Unesi prvi broj „;
cin>>q;
S=0;
bool prost;
cout << „Prosti brojevi od“<< “ „<<p<<“ do“<<“ „<<q<<“ „<<„su: „;
for (int x=p; x<q; x++)
{prost=true;
for ( i=2;i < x && prost==true;i++)
if (x%i==0 ) prost=false;
if (prost==true)
cout << “ “ << x ;
}
cout<<endl;
system(„PAUSE“);
return EXIT_SUCCESS;
}