摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1634将一个数表示成素数相乘的形式,其中素数从小到大排列。 1 #include 2 #include 3 #include 4 const int N=65536; 5 int a[N]; 6 void is_prime() 7 { 8 a[1] = 0,a[2] = 1; 9 for (int i = 3; i x)38 break;39 while(a[i])40 ... 阅读全文
posted @ 2013-08-24 14:49 N_ll 阅读(191) 评论(0) 推荐(0)