#include void main(){int i,j,n=0,sum=0;for(i=100;i<=300;i++){for(j=2;jif(i%j==0) break;if(j>=i) {n++;sum+=i;}}printf("100到300之间共有%d个素数,和为%d",n,sum);}