#include
using namespace std;
int main()
{
int N;
cout<<"N=";<br>
cin>>N;
int X[N];
for (int i=0; i
{
setlocale (LC_CTYPE, "Russian");
cout<<"aaaaeoa cia?aiea "<<i<<" yeaiaioa ianneaa";<br>
while (!(cin>>X[i]))
{
cin.clear();
while (cin.get() !='\n');
cout<<"aaaaeoa cia?aiea "<<i<<" yeaiaioa ianneaa";<br>
}
}
cout<<"Enoiaiue iannea:"<<endl;<br>
for (int i=0; i
cout<<"X["<<i<<"]="<<X[i]<<endl;<br>
bool prostoe [N+1];
for (int i=2; i<=N+1; i++)<br>
prostoe[i]=true;
for (int i=2; i<=N; i++)<br>
{
if (prostoe[i])
{
for (int j=i*i; j<=N; j+=i)<br>
prostoe [j]=false;
}
}
for (int i=2; i<=N; i++)<br>
if (prostoe[i])
cout<<i<<endl;</span>