找回密码
 欢迎注册
楼主: 无心人

[讨论] 极大素数间隔问题

[复制链接]
 楼主| 发表于 2008-3-24 16:24:04 | 显示全部楼层

如果可行, 并不会让C产生汇编,直接写就是了
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2009-12-8 21:19:26 | 显示全部楼层
感觉意义不大
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2010-3-17 17:05:06 | 显示全部楼层
这个最大会不会不是收敛的呢
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2011-7-11 22:46:27 | 显示全部楼层
不错!
顶起来,回头再看看
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2012-3-11 10:36:37 | 显示全部楼层
1# 无心人

我的筛法经过优化,需找最大素数间隔每秒能达到10^9, 离楼主目标10万亿(10^12)/s 差距甚远

C:\Windows\system32\cmd.exe /c PrimeNumber62
--------------------------------------------------------------------
Count/Sieve number of primes in (0, 1E19 + 1E13), version 1.8
Implemented by the segmented sieve of eratosthenes [wheel = 30/210]
Copyright @ by Huang Yuanbing 2011 - 2012 bailuzhou@163.com
--------------------------------------------------------------------
--------------------------------------------------------------------
Compiled by Mingw/g++ 4.6.3 on 10:50:33 Mar 11 2012
Cpu arch = x86, cores = 4, SSE4_Popcnt = 0
Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz, L2 cache = 256 kB
--------------------------------------------------------------------
[MARCO] : ASM_X86 = 0, LIANGBCH = 1
[MARCO] : SIEVE_SIZE = 1024k, BLOCK_SIZE = 32k, PDIFF = 255
--------------------------------------------------------------------
--------------------------------------------------------------------
-------------------start count primes -------------------

Prime[50847538] = 1000000033, save primes gap use 0.326 sec
init bucket list time use 1.528 sec and sieve size = 1024 k
PI[1e18, 1e18+1e9] = 24127085, time use 1.427 sec
-------------------start find max gap -------------------
init bucket list time use 1.513 sec and sieve size = 1024 k
time use 1.442 sec, maxp prime gap = 744 on 1000000000696148003

[command or number] : y 1 e10
-------------------start find max gap -------------------
time use 3.417 sec, maxp prime gap = 354 on 4302407359

[command or number] : y 1e16 1e10
-------------------start find max gap -------------------
init bucket list time use 0.182 sec and sieve size = 1024 k
time use 12.062 sec, maxp prime gap = 648 on 10000004892952351

[command or number] :
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2020-3-30 23:02:03 | 显示全部楼层
定理:x内最大相邻素数间距记为D(x),则:
D(x)=(lnx)^2
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

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

GMT+8, 2024-5-8 08:00 , Processed in 0.054040 second(s), 14 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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