1. 1.
    0
    #include <iostream>

    using namespace std;

    int main()
    {
    int i=0;
    int counter =0;

    while(i <= 100){
    counter = 0;
    for(int j=2;j<i;j++){
    if(i%j!=0)
    counter++;
    }
    if(counter == i-2)
    cout<<i<<" ";

    i++;
    }

    system("pause");
    return 0;
    }
    ···
   tümünü göster