会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蒟蒻豆进阶之路
管理
2021年7月11日
质数判断与质数筛法
摘要: 1、质数判断 bool isPrime(int n) { if (n < 2) return false; for (int i = 2; i <= n / i; i++) if (n % i == 0) return false; return true; } 2、埃拉筛 const int N
阅读全文
posted @ 2021-07-11 10:23 糖豆爸爸
阅读(111)
评论(0)
推荐(0)
公告
Live2D