101哪里去了?
#include<iostream>#include<math.h>
using namespace std;
int main()
{
int i,j,n=0,leap=0,k;
for(i=101;i<=200;i++)
{
k=sqrt(i+1);
for(j=2;j<=k;j++)
{
if(i%j==0)
{
leap=0;
break;
}
}
if(leap)
{
cout<<i<<" ";
n++;
if(n%8==0)
cout<<endl;
}
leap=1;
}
return 0;
}