Replies: 48 comments 7 replies
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
敢问怎么没有说著名的the Meissel, Lehmer, Lagarias, Miller, Odlyzko method |
Beta Was this translation helpful? Give feedback.
-
@H-J-Granger 蒟蒻不会啊.. 欢迎大佬来补充 |
Beta Was this translation helpful? Give feedback.
-
可是蒟蒻我也不会啊 |
Beta Was this translation helpful? Give feedback.
-
fi表示i的约数和"建议这里加一个逗号或空格"gi表示i的最小质因子的... |
Beta Was this translation helpful? Give feedback.
-
后面是1+p+p^2+...吗? |
Beta Was this translation helpful? Give feedback.
-
那个埃拉托斯特尼筛法有问题。 int j=i*i 你确定是ii?筛倍数应该是2i才对啊 |
Beta Was this translation helpful? Give feedback.
-
那个所谓的什么 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
如果一个合数是i乘一个比i小的数,那么它之前已经被一个比i小的素数筛过了。 |
Beta Was this translation helpful? Give feedback.
-
我同意这位的说法,很多时候i * i会溢出,这会导致给数组传入一个负值做下标 |
Beta Was this translation helpful? Give feedback.
-
我认为 @zmxqs 的说法是错的,您提出的问题和他提出的问题其实是两个完全不一样的东西好吗.. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Mertens第二定理的证明可以看这篇文章 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
感觉 筛法求约数个数 讲得不是很详细,求修正 |
Beta Was this translation helpful? Give feedback.
-
“筛法求约数个数”和“筛法求约数和”讲得不是很详细,希望能像“ 筛法求欧拉函数 ”那样分类讨论说详细点 |
Beta Was this translation helpful? Give feedback.
-
筛法求莫比乌斯函数那一节公式应该是 |
Beta Was this translation helpful? Give feedback.
-
一开始也没看懂 后面想到,(i-1)的倍数都筛过了,所以就不用再筛一次了 |
Beta Was this translation helpful? Give feedback.
-
我觉得那个线性筛的注释有问题 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
问个问题,Eratosthenes 可否这样做: const int range=1e6;
bool isprime[range+10];
void eratosthenes(){
memset(isprime,1,sizeof(isprime));
isprime[0]=isprime[1]=false;
for(int i=2;i*i<=range;i++){
if(isprime[i]) for(int j=2;j*i<=range;j++) isprime[i*j]=false;
}
return;
} 使时间复杂度达到 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment was marked as spam.
This comment was marked as spam.
-
orz,拜谢
…________________________________
发件人: FIRESTARS-ZFYX ***@***.***>
发送时间: 2024年8月28日 16:48
收件人: OI-wiki/gitment ***@***.***>
抄送: demeter1210 ***@***.***>; Comment ***@***.***>
主题: Re: [OI-wiki/gitment] 筛法 (Discussion #647)
%%%
―
Reply to this email directly, view it on GitHub<#647 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIYBOA7SEFD7UGR2S5XV3ITZTWFF3AVCNFSM6AAAAAATJQCYAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBXGI2DMMI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
https://oi-wiki.org/math/sieve/
Beta Was this translation helpful? Give feedback.
All reactions