摘要: 素数判定方法 方法一:试除法 从2到sqrt(n),依次试除 代码: #include<bits/stdc++.h> #define ll long long using namespace std; bool isPrime(ll n){ if(n<2)return 0; for(int i=2; 阅读全文
posted @ 2023-07-04 17:20 天雷小兔 阅读(58) 评论(0) 推荐(0)