- 注册时间
- 2008-11-26
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 149507
- 在线时间
- 小时
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?欢迎注册
×
下载地址:
https://mersenneforum.org/showpost.php?p=480484&postcount=455
常用命令:
- ::打开cmd窗口,输入下面的命令
- ::必须切换到这个目录下,不然调用不了命令
- ::目录下必须含有下面两个exe文件 ecm.exe ecmfactor.exe README
- cd C:\Users\Administrator\Desktop\_123\gmpecm-svn3027-sandybridge
- ::全部帮助文件命令ecm --help
- ::1000条曲线,B1=1e6,B2=1e9,分解的整数在composites文件里
- ecm -c 1000 1e6 1e9 < composites
- ::找到一个因子就停止运行
- ecm -one -c 1000 1e6 1e9 < composites
复制代码
全部帮助文件:- Usage: ecm [options] B1 [[B2min-]B2] < file
- Parameters:
- B1 stage 1 bound
- B2 stage 2 bound (or interval B2min-B2max)
- Options:
- -x0 x use x as initial point
- -y0 y use y as initial point (Weierstrass form)
- -param i which parametrization should be used [ecm]
- -sigma s use s as parameter to compute curve's coefficients
- can use -sigma i:s to specify -param i at the same time [ecm]
- -A A use A as a curve coefficient [ecm, see README]
- -torsion T to generate a curve with torsion group T [ecm, see README]
- -k n perform >= n steps in stage 2
- -power n use x^n for Brent-Suyama's extension
- -dickson n use n-th Dickson's polynomial for Brent-Suyama's extension
- -c n perform n runs for each input
- -pm1 perform P-1 instead of ECM
- -pp1 perform P+1 instead of ECM
- -q quiet mode
- -v verbose mode
- -timestamp print a time stamp with each number
- -mpzmod use GMP's mpz_mod for modular reduction
- -modmuln use Montgomery's MODMULN for modular reduction
- -redc use Montgomery's REDC for modular reduction
- -nobase2 disable special base-2 code
- -nobase2s2 disable special base-2 code in ecm stage 2 only
- -base2 n force base 2 mode with 2^n+1 (n>0) or 2^|n|-1 (n<0)
- -ntt enable NTT convolution routines in stage 2
- -no-ntt disable NTT convolution routines in stage 2
- -save file save residues at end of stage 1 to file
- -savea file like -save, appends to existing files
- -resume file resume residues from file, reads from stdin if file is "-"
- -chkpnt file save periodic checkpoints during stage 1 to file (for -param 0)
- -primetest perform a primality test on input
- -treefile f [ECM only] store stage 2 data in files f.0, ...
- -maxmem n use at most n MB of memory in stage 2
- -stage1time n add n seconds to ECM stage 1 time (for expected time est.)
- -I f increment B1 by f*sqrt(B1) on each run
- -inp file Use file as input (instead of redirecting stdin)
- -one Stop processing a candidate if a factor is found (looping mode)
- -go val Preload with group order val, which can be a simple expression,
- or can use N as a placeholder for the number being factored.
- -printconfig Print compile-time configuration and exit.
- -bsaves file With -param 1-3, save stage 1 exponent in file.
- -bloads file With -param 1-3, load stage 1 exponent from file.
- -h, --help Prints this help and exit.
复制代码
唯一的恼人的问题就是,一旦出现一个因子,但是不能够输出因子到文本文件里面(也许是我不会)
分享一下截屏
|
-
|