摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<math.h> 4 5 int prime(int x) 6 { 7 int i, flag=1; 8 for(i=2; i<=sqrt(x); i++) 9 {10 if(x%i == 0) flag=0;11 } 12 return flag; 13 } 14 15 int main()16 {17 int ncases, n, i, m, sum;18 19 scanf("%d",&ncases);20 for(i= 阅读全文
posted @ 2011-12-16 11:59 zhongya 阅读(188) 评论(1) 推荐(1) 编辑