leap=0错写成leap==0了,多了个等号。其实没这么麻烦。include <stdio.h>void main(){int i,m,n=0;for(m=101;m<=200;m++){for(i=2;i<=m/2;i++)if(m%i==0) break;if(i>m/2) {printf("%d ",m);n++;if(n%10==0)printf("\n");}}} ...