#include<stdio.h> void main() { int x,i,m; x=100; while(x<=200) { i=2; m=0; while(i<=int(x/2)) { if(x%i==0) m=1; i=i+1; } if(m==0) printf("%d是素数\n",x); x=x+1; } }