#include <iostream>
using namespace std;
int main()
{int i=3;
cout<<2<<"/";
while (i<=100)
{int a=2,y=1;
while(a<=i-1&&y!=0)
{y=i%a;
a++;
}
if (a==i)
cout<<i<<"/";
i++;
}
return 0;
}
#include <iostream>
using namespace std;
int main()
{int i=3;
cout<<2<<"/";
while (i<=100)
{int a=2,y=1;
while(a<=i-1&&y!=0)
{y=i%a;
a++;
}
if (a==i)
cout<<i<<"/";
i++;
}
return 0;
}
本文标题:2018-10-02
本文链接:https://www.haomeiwen.com/subject/tulaoftx.html
网友评论