萌新代码
int n,m; int a=1; cin>>n>>m; int t=0; for(int i=n;i<=m;i++){ a=1; for(int j=2;j<i;j++){ if(i%j==0){ a=0; break; } } if(a==1){ t++; } cout<<t;