会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Ldler
CnBlogs
Home
New Post
Contact
Admin
Subscription
2020年2月25日
数论——素数和反素数
素数 素数一般判定方法 bool isPrime(a) { if (a < 2) return 0; for (int i = 2; i * i <= a; ++i) if (a % i) return 0; return 1; } 但对于long long int的数,O(√n)的复杂度还是会时间
Read More
posted @ 2020-02-25 22:26 Ldler
Views(366)
Comments(0)
Diggs(0)
Edit
公告