#include<iostream>#include<math.h>using namespace std;int main(){ int a,j,i=1; cout<<"包含了100之内的质数"<<endl; while(i<=100) { a=sqrt(i); for(j=2;j<=a;j++) { if(i%j==0) break; } if(j>a) cout<<i<<endl; i++; } return 0; }