![]() |
![]() |
#67 |
Jul 2014
1111002 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 clarified|simplified some language, and explained the code changes. The updated paper is available at the previously provided links, and I've attached a copy here. |
![]() |
![]() |
![]() |
#68 | |
Jul 2022
516 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] 64-bits 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 |
|
![]() |
![]() |
![]() |
#69 | |
"Tilman Neumann"
Jan 2016
Germany
13×41 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. |
|
![]() |
![]() |
![]() |
#70 | |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
235038 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. |
|
![]() |
![]() |
![]() |
#71 |
Jul 2014
22×3×5 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_ssoz-rust threads = 16 using Prime Generator parameters for P5 segment size = 5 resgroups; seg array is [1 x 1] 64-bits 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 |
![]() |
![]() |
![]() |
#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 :) |
![]() |
![]() |
![]() |
#73 |
Jul 2022
102 Posts |
![]()
A corrected version (2020->2022) is available https://gist.github.com/Pascal66/d92...fc9a787636e17c
This was pushed on @Till java math library |
![]() |
![]() |
![]() |
#74 | |
"Tilman Neumann"
Jan 2016
Germany
13×41 Posts |
![]() Quote:
Thanks Pascal, your PR is merged now and I verified that it fixes the error found by rustum. |
|
![]() |
![]() |
![]() |
#75 | |
"Tilman Neumann"
Jan 2016
Germany
53310 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 2022-07-04 at 13:25 Reason: two cooks and a waiter instead of three cooks ;-) |
|
![]() |
![]() |
![]() |
#76 |
Jul 2022
5 Posts |
![]()
Thanks to Pascal66 and Till for the prompt bug fix and file updates.
|
![]() |
![]() |
![]() |
#77 | |
Jul 2022
5 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 | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Twin Prime Constellations | robert44444uk | Prime Gap Searches | 45 | 2022-02-24 18:28 |
How do you efficiently sieve for prime 3/4-tuples? | Puzzle-Peter | Software | 156 | 2019-06-03 20:19 |
find very easy twin prime in the infamy twin primes | hal1se | Miscellaneous Math | 13 | 2018-11-05 16:34 |
Highest Prime is also a twin prime... NOT | hydeer | Lone Mersenne Hunters | 9 | 2018-04-03 22:54 |
Twin Prime Days, Prime Day Clusters | cuBerBruce | Puzzles | 3 | 2014-12-01 18:15 |