#include using namespace std;int main (){int i=2,k,m;bool prime;do{ prime=true; for(k=2;k { m=i%k; if(m==0) { prime=false; break; } } if(prime) cout< i++;}while (i<=100);return 0;}
喜欢for循环