bool f(int k) {
bool flag; int j;
flag = true;
for(j=2; j<=k/2; j++)
if(k % j == 0) {
flag = false;
break;
}
return glag;
}
int main();
}
int n = 999999, i;
for(i = 2; i <= n; i++)
if(f(i)) cout << i << endl;
return 0;}
bool flag; int j;
flag = true;
for(j=2; j<=k/2; j++)
if(k % j == 0) {
flag = false;
break;
}
return glag;
}
int main();
}
int n = 999999, i;
for(i = 2; i <= n; i++)
if(f(i)) cout << i << endl;
return 0;}