else printf("%d不是素数\n",a);}while(a!=0);}
include <iostream> using namespace std;void main() { cout<<"100-200之间的所有素数为:"<<endl;int k=0;for (int i=100;i<=200;i++){int m=0;for (int a=1;a<=i;a++){if(i%a==0) m++;}if(m==2){ cout<<i<<" ";k+=i;}}cout<<endl;cout<<"这些素数的为:...