1. 26.
    0
    #include <cstdlib>
    2. include <iostream>

    using namespace std;

    int main(int argc, char *argv[])
    {
    int i,j,k,d;
    for(i=3;i<30;i++)
    {
    k = 1;
    for(j=2;j<i;j++)
    {
    d = i % j;

    if(d==0)
    {
    k = 0;
    }
    }

    if(k == 1)
    {
    cout << i << "n" << endl;
    }
    }
    system("pause");
    return 0;
    }
    ···
   tümünü göster