{ int p[200],i,j;for(i=0;i<=100;i++)p[i]=i;p[1]=0;i=2;while(i<50){for(j=i+1;j<=100;j++){if(p[j]!=0&&p[j]%p[i]==0)p[j]=0;} i++;while(p[i]==0)i++;} for(i=0;i<=100;i++)if(p[i]!=0)printf("%d ",p[i]);} 呵呵!开始写错...
return 1;} main(){ int i, iL = 0;for( i = 11; i<=100; i+=10 ){ if ( isPrime( i )) // 判断i是不是素数 { printf( "%d ", i );// 每5个数换行 ++iL;if (( iL % 5 ) == 0 ){ printf( "\n");} } } } ...