20220629, 20:07  #67 
Jul 2014
2^{3}×7 Posts 
I updated the paper and code yesterday (June 28, 2022  Tau Day).
I found 2 places in the code that allowed arithmetic overflow, that I fixed in all versions. I also fixed some typos, and clarifiedsimplified some language, and explained the code changes. The updated paper is available at the previously provided links, and I've attached a copy here. 
20220703, 04:33  #68  
Jul 2022
5 Posts 
Quote:
Code:
T:\PRIMES>java TNeumann.SSOZJ Please enter an range of integer (comma or space separated): 16850900 16851030 Max threads = 12 Using Prime Generator parameters for given Pn 5 segment size = 5 resgroups; seg array is [1 x 1] 64bits twinprime candidates = 15 ; resgroups = 5 each 3 threads has nextp[2 x 561] array setup time = 0.026 secs perform twinprimes ssoz sieve with s=6 3 of 3 threads done sieve time = 0.008 secs last segment = 5 resgroups; segment slices = 1 total twins = 1; last twin = 16850988+/1 total time = 0.034 secs 

20220703, 20:18  #69  
"Tilman Neumann"
Jan 2016
Germany
11×47 Posts 
Quote:
Well, admittedly I didnt't test the program extensively. For a start I will comment the error in the javadoc. Maybe Pascal Pechard is willing to investigate it. 

20220704, 01:43  #70  
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
5·1,997 Posts 
Quote:
If seven cooks only care about their part of the recipe and then put it all together in a soup, trust me  you won't want to eat it. 

20220704, 02:35  #71 
Jul 2014
70_{8} Posts 
Here are the correct results using Rust (other versions give same result).
I haven't looked at that code in awhile, but I informed its author. Code:
echo 16850900 16851030  ./twinprimes_ssozrust threads = 16 using Prime Generator parameters for P5 segment size = 5 resgroups; seg array is [1 x 1] 64bits twinprime candidates = 15; resgroups = 5 each of 3 threads has nextp[2 x 108] array setup time = 0.000798284 secs perform twinprimes ssoz sieve 3 of 3 twinpairs done sieve time = 0.00003492 secs total time = 0.000838024 secs last segment = 5 resgroups; segment slices = 1 total twins = 0; last twin = 0+/1 
20220704, 06:09  #72 
Jul 2022
2 Posts 
@rustulm, I'll give the correct version to @till soon.
As @jzakiya say, there's some good improvment on it, so the improved version will be online soon too. Sorry to haven't updated the code for some years :) 
20220704, 08:00  #73 
Jul 2022
2 Posts 
Corrected version
A corrected version (2020>2022) is available https://gist.github.com/Pascal66/d92...fc9a787636e17c
This was pushed on @Till java math library 
20220704, 12:58  #74  
"Tilman Neumann"
Jan 2016
Germany
11·47 Posts 
Quote:
Thanks Pascal, your PR is merged now and I verified that it fixes the error found by rustum. 

20220704, 13:15  #75  
"Tilman Neumann"
Jan 2016
Germany
11·47 Posts 
Quote:
Good saying, but not really appropriate here. This twin prime sieve only has two cooks and a waiter (me); and all the rest of the library has been (implemented or ported or (extensively reviewed and worked over)) and tested by myself. Last fiddled with by Till on 20220704 at 13:25 Reason: two cooks and a waiter instead of three cooks ;) 

20220704, 21:27  #76 
Jul 2022
5 Posts 
Thanks to Pascal66 and Till for the prompt bug fix and file updates.

20220709, 15:41  #77  
Jul 2022
5_{16} Posts 
Quote:
Until these bugs are fixed and the output lists of primes have been verified, any conclusions (regarding the correctness of the so called Prime Generators or the speed of the algorithm) are premature. 

Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Twin Prime Constellations  robert44444uk  Prime Gap Searches  45  20220224 18:28 
How do you efficiently sieve for prime 3/4tuples?  PuzzlePeter  Software  156  20190603 20:19 
find very easy twin prime in the infamy twin primes  hal1se  Miscellaneous Math  13  20181105 16:34 
Highest Prime is also a twin prime... NOT  hydeer  Lone Mersenne Hunters  9  20180403 22:54 
Twin Prime Days, Prime Day Clusters  cuBerBruce  Puzzles  3  20141201 18:15 