c语言一百以内素数求和
#include<stdio.h> int main() { int a,b,sum; for (a=2;a<100;a++) { for(b=2;b<a;b++) { if(a%b==0) break; } if(a==b) sum+=a; } printf("一百以内素数之合为%d\n",sum); return 0; }