摘要:
如果筛选素数sqrt(n),然后挨个统计进去,复杂度是nsqrt(n) #include<stdio.h> #include<math.h> #include<string.h> using namespace std; bool isPrime(int n) { if(n<=1) return f 阅读全文
摘要:
如果筛选素数sqrt(n),然后挨个统计进去,复杂度是nsqrt(n) #include<stdio.h> #include<math.h> #include<string.h> using namespace std; bool isPrime(int n) { if(n<=1) return f 阅读全文
|