找回密码
 新注册用户
搜索
查看: 7710|回复: 3

[GIMPS]Stage 1 GCD 是个什么过程?

[复制链接]
发表于 2006-2-17 22:08:30 | 显示全部楼层 |阅读模式
恕本人见识短浅,GCD 过程从来没看到过,Google 上倒是搜索到不少,要么是求助的,要是是说些不相干的东西的。

看下面的界面提示:
Starting stage 1 GCD - please be patient.
Stage 1 GCD complete. Time:264.521 sec.

帖图如下,从图片倒数第 6 行开始。
回复

使用道具 举报

发表于 2006-2-18 19:31:58 | 显示全部楼层
Stage1是Pollard p-1方法
这是一种概率型的素性检验方法
METHOD
Choose a number, N, you wish to factor
Choose a number, 1 < a < N, say a = 2
Choose a number, k, say k = 2
If gcd(a, N) is not 1, you have a factor. Otherwise...
Let t = a^k mod N
Let d = GCD( t-1, N )
Use division algorithm to see if d is a factor of N
YES? - You found a factor, you are done
NO? - Then...
Change a and/or k and go back to step 4

看看中间出现了gcd~~~
就是求最大公约数啦~~~
回复

使用道具 举报

发表于 2006-2-24 14:58:05 | 显示全部楼层
楼主请看帮助文件:

P-1 Factoring

The P-1 method is quite simple. First, pick a bound B1. P-1 will find the factor q as long as all factors of k are less than B1 (k is called B1-smooth).  Second, compute E - the product of all primes less than B1. Third, compute x = 3E*2*P. Finally, check the GCD (x-1, 2P-1) to see if a factor was found.

这是程序默认的执行步骤.

并且可以手动关闭跳过此步骤:

You can skip the GCD in stage 1 of P-1 factoring with this prime.ini setting:
Stage1GCD=0
回复

使用道具 举报

 楼主| 发表于 2006-2-25 22:57:23 | 显示全部楼层
呵呵,后来我又经历了 stage 1 GCD 阶段,现在进入 LL 阶段了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 新注册用户

本版积分规则

论坛官方淘宝店开业啦~
欢迎大家多多支持基金会~

Archiver|手机版|小黑屋|中国分布式计算总站 ( 沪ICP备05042587号 )

GMT+8, 2024-5-4 01:21

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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