北航機試-素數

仔細。 #include<bits/stdc++.h> using namespace std; const int maxn = 10005; int pnum = 0; int prime[maxn]; bool mark[maxn] = {0}; void find_prime(){ for(int i=2;i<maxn;i++){ if(mark[i]==true) continu
相關文章
相關標籤/搜索