【答案】:#include int main() { int a[100],i=2,temp=0,total=0; while(i<=100) { i++; temp=i; if (i==2) { total+=i; } else { while(temp) { temp--; if (temp==1) { total+=i; break; } else if(temp!=1&&(i%temp)==0) break; } } } printf('The total is %d\n',total); return 0; }