摘要: 1 #include<stdio.h> 2 #include<string.h> 3 int a[18]; 4 int v[18]={0}; 5 int t[33]={0}; 6 int N; 7 8 void init() 9 {10 int i,j;11 for(i=2;i<33;i++) 12 if(!t[i])13 for(j=2*i;j<33;j+=i)14 t[j]=1;15 }16 17 void fun1(int n) //方法一18 {19 int i;20 if(n==N && ! ... 阅读全文
posted @ 2012-12-05 17:22 萧凡客 阅读(208) 评论(0) 推荐(0) 编辑