摘要:
如果筛选素数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 阅读全文
posted @ 2020-02-06 14:40
ltx_zero
阅读(140)
评论(0)
推荐(0)
浙公网安备 33010602011771号