找回密码
 欢迎注册
查看: 1382|回复: 3

[测试] 素性测试mathematica VS hugecalc

[复制链接]
发表于 2022-8-30 15:14:46 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 nyy 于 2022-8-30 15:15 编辑

待测试整数 10^5019 + 43157099231631693
5020位大整数
mathematica 11.2时间
{3.22922, True}

hugecalc 8.0.0.0时间
38.133398秒

3.22922/38.133398=0.0846821990529
38.133398/3.22922=11.8088572473倍

只测试不评价!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2022-8-30 15:18:49 | 显示全部楼层
(32*10^6959-23)/99
6959 decimal digits

mathematica11.2
{7.47245, True}

hugecalc 8.0.0.0
31.169091

31.169091/7.4724479=4.1712
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2022-9-15 14:21:19 | 显示全部楼层
nyy 发表于 2022-8-30 15:18
(32*10^6959-23)/99
6959 decimal digits

Timing[PrimeQ[2^116224 - 15905]]
{427.864, True}
34987 decimal digits

PFGW Version 4.0.3.64BIT.20220704.Win_Dev [GWNUM 29.8]

Resuming input file input2 at line 2

Primality testing 2^116224-15905 [N-1/N+1, Brillhart-Lehmer-Selfridge]
Running N-1 test using base 7
Running N+1 test using discriminant 31, base 1+sqrt(31)
2^116224-15905 is Fermat and Lucas PRP! (26.5976s+0.0008s)

Done.

427.864/26.5976=16.0865642013倍,
这个软件的判定素数的速度,居然是mathematica的16倍!!!!!!!!!!!!!!!!!!!!!!!!!!!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2022-9-16 17:23:37 | 显示全部楼层
Timing[PrimeQ[118112 + (2^(2^15) + 1)]]

{18.1897, True}

F15之后的第一个素数!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

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

GMT+8, 2024-4-24 10:49 , Processed in 0.134929 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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