找回密码
 欢迎注册
查看: 1947|回复: 2

[求助] 为什么GIMPS用费马测试?

[复制链接]
发表于 2022-9-23 11:17:32 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?欢迎注册

×
https://www.mersenne.org/various/math.php#prp
Starting in 2018, GIMPS started using a Fermat probable prime test rather than a Lucas-Lehmer test to search for new Mersenne primes. Robert Gerbicz devised a way to almost completely eliminate the chance of a hardware error corrupting the primality test. Even though results are 99.999+% reliable double-checking is still necessary to guard against program error or forged results. Gerbicz error checking does mean that GIMPS is extremely unlikely to miss a new Mersenne prime on the first test -- a big improvement over the previous 1 or 2% chance of missing a new Mersenne prime on the first test.

Another breakthrough lets GIMPS completely avoid the double-checking process! Krzysztof Pietrzak showed how to create a PRP proof that cannot be faked and can be verified over 100 times faster than a standard double-check. In 2020 proofs were added to the GIMPS software and PRP with proofs became the preferred way to search for new Mersenne primes.

为什么他们会用费马测试呢?我感觉很奇怪!
谁能说清楚其中的道理,梅森数不是有现成的 Lucas-Lehmer test 吗?而且这个测试还是确定的!
为什么他们会改变呢?
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2022-9-24 20:48:39 | 显示全部楼层
因为$n=2^p-1$在执行MR测试时候
$n-1=2^p-2=2(2^{p-1}-1)$,只有一个$2$

所以,测试时候只需要测试 $b^{(n-1)/2} = ±1 (mod n)$ 是否成立就行
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2022-9-26 13:04:25 | 显示全部楼层
无心人 发表于 2022-9-24 20:48
因为$n=2^p-1$在执行MR测试时候
$n-1=2^p-2=2(2^{p-1}-1)$,只有一个$2$

上面的英文我不大懂,但是很明显与你这个没关系!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

小黑屋|手机版|数学研发网 ( 苏ICP备07505100号 )

GMT+8, 2024-6-1 23:05 , Processed in 0.058092 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表