int main() { int i, j, zakres, b;
bool tablica[100];
cout << "Podaj gorny zakres, max 99" << endl;
cin >> zakres;
b= sqrt((float)zakres);
for (i=2; i tablica[i] = true;
for (i=2; i<=b; i++)
if (tablica[i]!=false)
for (j=i+i; j tablica[j] = false;
cout << "Liczby pierwsze z zakresu od 1 do " << zakres << " to:" < for (i=2; i if (tablica[i]!=false)
cout << i << " ";
cin.ignore();
getchar();
return 0;
}