mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Prime Gap Searches

Reply
 
Thread Tools
Old 2023-02-23, 23:27   #78
rudy235
 
rudy235's Avatar
 
Jun 2015
Vallejo, CA/.

116110 Posts
Default

Quote:
Originally Posted by Bobby Jacobs View Post
1370 is the 73rd maximal prime gap. We really want to know if 1552 is the 81st maximal prime gap.
Yes
rudy235 is offline   Reply With Quote
Old 2023-02-24, 19:41   #79
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

15668 Posts
Default SOE all over again?

Perhaps it would be expedient to consider a complete trial division sieve on large intervals in order for the search to remain exhaustive.

Not sure what's possible in terms of efficient computation, but I'm envisioning a large bitmap, for example 32 GB in size, which could contain almost 3e12 numbers if a wheel size of 30030 is used and only numbers of the form 6k+1 are being looked at (a gap of >= 1432 should appear every about 5e8 integers, only those would have to be checked again for 6k-1 in-between).

To compete, we expect a throughput of at least, say, 3e10 per second. Trial division needs about 210 million primes (i.e. on top about 200 MB to store the halved differences between primes, one per byte), where I guess memory writing is the bottleneck for small primes, "mod"-ing for large primes may be similarly slow (a simplification, I know, there's certainly more to it). Searching for gaps in the sieved interval is the next possible bottleneck, I don't know how much can be done in parallel.
If one such interval could be dealt with in less than two minutes, we'd be happy.

Is this worth any thought? What are the most critical hurdles we are facing?
mart_r is offline   Reply With Quote
Old 2023-03-05, 17:14   #80
Bobby Jacobs
 
Bobby Jacobs's Avatar
 
May 2018

293 Posts
Default

Yes. This is a good idea. It does not seem to have any hurdles. You did primes up to 264 quickly, so this should be quick, too.
Bobby Jacobs is offline   Reply With Quote
Old 2023-03-06, 19:01   #81
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

11011101102 Posts
Default

Quote:
Originally Posted by Bobby Jacobs View Post
You did primes up to 264 quickly,
Me? Not so much, my performance as a participant back in 2018 was only mediocre, remember that I didn't find any first occurrences. Unlucky me
Also I don't know how to write code comparable to that of Robert Gerbicz's. It takes way more skill and dexterity than a few lines of Pari or Basic...
mart_r is offline   Reply With Quote
Old 2023-03-20, 12:30   #82
Andrew Usher
 
Dec 2022

23×5×11 Posts
Default

The obvious question is: to what extent can that code be re-used in a search beyond 2^64? Also, because of the smaller interval required (less than 2^55), it doesn't need to be as efficient.
Andrew Usher is offline   Reply With Quote
Old 2023-04-29, 19:44   #83
Bobby Jacobs
 
Bobby Jacobs's Avatar
 
May 2018

12516 Posts
Default

It should not be that much harder. When are we going to start the search?
Bobby Jacobs is offline   Reply With Quote
Old 2023-05-18, 12:33   #84
Andrew Usher
 
Dec 2022

23×5×11 Posts
Default

I still want to follow up this topic. What would count as an official verification, and who's deciding? I have written a segmented sieve but it's also limited to 2^64; as I said, though, efficiency hardly matters for this small range. It doesn't seem that it should be difficult to come up with something that should work, but again what would be necessary to have the results counted as official?
Andrew Usher is offline   Reply With Quote
Old 2023-05-18, 14:35   #85
Cybertronic
 
Cybertronic's Avatar
 
Jan 2007
Germany

10101001012 Posts
Default

I have a tiny idea...
Every prime p-1 is divisible by 2 ...maybe so you can push up the limit to 2^65.

Example:
Range 11 to 41 -> k= 5 to 20 ; we have limit = 20
Factor 3 kills: k=7,10,13,16,19
Factor 5 kills: k=7,12,17

So primes are: 2k+1, with k=11,14,15,18,20 -> 23,29,31,37,41 > limit

Largest GAP is (18-15)*2=6 -> 31,37

Last fiddled with by Cybertronic on 2023-05-18 at 14:39
Cybertronic is offline   Reply With Quote
Old 2023-05-19, 12:51   #86
Andrew Usher
 
Dec 2022

23·5·11 Posts
Default

Yes, I probably thought of that, once ... but realistically, the bigger issue is again that I'm not going to spend time on a program that will be useful only for this unless I know it will be accepted as an official verification by whoever makes the decisions on this - after all, someone else already did write a program and found the new gaps, why duplicate that otherwise?

I would not go much past the limit required to verify the new gaps anyway; my resources are far short of the distributed effort that originally went to 2^64.
Andrew Usher is offline   Reply With Quote
Old 2023-05-19, 20:17   #87
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

2·443 Posts
Default

I am testing a SOE implementation in Excel/VBA, thus far I have the differences of the primes up to 75011^2-2 (which would suffice for a search up to about 3.166e19) packed into an array of 131469743 short integers (16-bit), with two differences per integer.
Currently the division of the 65-bit offset number by the up-to-33-bit numbers is the bottleneck - it took 6 minutes in total to churn through an interval of 600 million! -, so I'm wondering whether it would be faster to store the offsets for the sieve and the increment values for each interval to be sieved in another two array variables, so we get rid of the division step at the cost of a memory read-out. Apart from the few 33-bit numbers we would need, most of the numbers to do TDing with could be long integers (32-bit), and we would need about 2 x 203 million of them (plus a couple more for the 33-bit TD primes), so storing the prime differences, offset and increment values would take about 2 GB of RAM, which is already too heavy for my programming environment.
My 6 min per 6e8 was a first test run where for the sieve I used an array of 300 million 16-bit numbers with only one bit per number used. I wanted to rewrite it to use 32-bit integers and all bits of them for the sieve, yet with the planned setup it can't possibly be much faster than 1e8 per second. I mean, if ever my code should work properly, I would run it, but be prepared that it would take a very long time for me to give updates on the progress...

Again, my idea from before: if sieving is the main bottleneck it might make sense to only search one residue class mod 6 and look for gaps >= 716 (= 1432/2), and check the complementary residue class (possibly in a separate, parallel routine) if such a gap is found. If searching for the gaps in the sieved interval is the bottleneck, then it should be more efficient to sieve as usual, as larger intervals can then be skipped in the sieved array.
mart_r is offline   Reply With Quote
Old 2023-05-19, 22:43   #88
Bobby Jacobs
 
Bobby Jacobs's Avatar
 
May 2018

293 Posts
Default

I cannot wait for the gaps above 264 to be found. Let's get it started!
Bobby Jacobs is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Guess the next maximal prime gap. Bobby Jacobs Prime Gap Searches 7 2022-08-28 12:12
Gaps between maximal prime gaps Bobby Jacobs Prime Gap Searches 52 2020-08-22 15:20
Superprime gaps Bobby Jacobs Prime Gap Searches 5 2019-03-17 20:01
Top 50 gaps robert44444uk Prime Gap Searches 1 2018-07-10 20:50
Gaps and more gaps on <300 site gd_barnes Riesel Prime Search 11 2007-06-27 04:12

All times are UTC. The time now is 11:39.


Thu Jun 1 11:39:42 UTC 2023 up 287 days, 9:08, 0 users, load averages: 0.58, 0.73, 0.83

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔