质数的判定--试除法
摘要:
#include <iostream> #include <cstring> #include <algorithm> bool is_prime(int n){ if(n<2)return false; for(int i=2;i<=n/i;i++) if(n%i==0)return false; 阅读全文
posted @ 2023-05-26 00:24 不是小朋友L 阅读(46) 评论(0) 推荐(0)
posted @ 2023-05-26 00:24 不是小朋友L 阅读(46) 评论(0) 推荐(0)