摘要: 1 #include 2 3 int main() 4 { 5 const int max = 1000001; 6 int *lpf = new int[max]; 7 int c = 2,n; 8 for(int i = 0;i < max;++i) lpf[i] = 0; 9 lpf[2] = 1;10 for(int i = 4;i < max;i += 2)11 {12 lpf[i] = lpf[2];13 }14 ... 阅读全文
posted @ 2012-12-09 12:42 maowang 阅读(312) 评论(0) 推荐(0)