mersenneforum.org GAPS BETWEEN PRIME PAIRS (Twin Primes)
 Register FAQ Search Today's Posts Mark Forums Read

2019-06-19, 21:41   #111
mart_r

Dec 2008
you know...around...

13·43 Posts

Quote:
 Originally Posted by robert44444uk We need more workers!
I'm pondering on joining, but I need a small recap on how to proceed.
Sieving via NewPGen, and then plug the output file into that Perl program in Thomas11's post #85 ? Any manual work in-between?

A small overview on the finished and reserved ranges would also help. From what I gather,
k < 3.65e15 (i.e. prime twins < 21.9e15) is done,
3.65e15 < k < 4e15 is reserved by Robert
4e15 < k < ? is reserved by Thomas
9e15 < k < 9.1e15 is reserved by firejuggler

Last fiddled with by mart_r on 2019-06-19 at 21:42 Reason: grammar

 2019-06-19, 21:59 #112 firejuggler     Apr 2010 Over the rainbow 45028 Posts no need for newpgen, the script does it by itself. you just set the start of your range and the number of iteration, and maybe an output file and your you're done.
2019-06-20, 09:07   #113
robert44444uk

Jun 2003
Oxford, UK

3×54 Posts

Thanks for the results to you both. Here is the latest list of first instance gaps complete to 3.65e15

The smallest gap without a recorded first instance is still 3994
Attached Files
 first instance list 200619.txt (208.6 KB, 31 views)

Last fiddled with by robert44444uk on 2019-06-20 at 09:24

2019-06-20, 09:12   #114
robert44444uk

Jun 2003
Oxford, UK

3×54 Posts

Quote:
 Originally Posted by mart_r A small overview on the finished and reserved ranges would also help. From what I gather, k < 3.65e15 (i.e. prime twins < 21.9e15) is done, 3.65e15 < k < 4e15 is reserved by Robert 4e15 < k < ? is reserved by Thomas 9e15 < k < 9.1e15 is reserved by firejuggler
Hi mart_r! That is correct. I would take from previous experience that Thomas11 is working on 4e15to4.5e15, so maybe you could start from 4.5e15.

On the program, you probably want to set a low gap for reporting. As there is no work done to date number, the low gap can't be too high otherwise you might run a long range without a result and then get a power cut or worse still, an automatic system update from B*ll Bl**dy Gat*s

If you fancy a coding challenge, you could

* convert the program to a threaded version
* put in a "work done to" feature
* automate the count of singleton primes in between the two twin primes - the code for that is as shown below, which takes a file of results, and also checks the size of the gap

Code:
!/usr/bin/env perl
use warnings;
use strict;
use Math::GMPz;
use Math::BigFloat lib=>"GMP";
use Math::Prime::Util qw/:all/;
use v5.10;
use List::Util qw/sum/;
use File::Slurp;

my @lines = read_file( 'rsres.txt' ) ;
chomp (@lines);
foreach (@lines) {
my $smaller =$_*6-1;
my $tprangeend =$smaller+100000;
my @twins = @{twin_primes($smaller,$tprangeend)};
my $gap =$twins[1]-$twins[0]; my$reportgap = $gap/6; my$bigger = $smaller+2; my$nexttwin = $twins[1]; my @primes = @{ primes($bigger, $nexttwin ) }; my$primecount = (scalar @primes)-2;
say $reportgap," ",$_," ",\$primecount;
}

Last fiddled with by robert44444uk on 2019-06-20 at 09:30

2019-06-20, 12:16   #115
mart_r

Dec 2008
you know...around...

13×43 Posts

Okay, the gap searching program works on both of my PCs. If I did the math right, I'd be capable to do about 0.2e15 k per week.

Quote:
 Originally Posted by robert44444uk If you fancy a coding challenge, you could * convert the program to a threaded version * put in a "work done to" feature * automate the count of singleton primes in between the two twin primes - the code for that is as shown below, which takes a file of results, and also checks the size of the gap
Alas I'm not familiar with Perl, I don't even know how to insert your program into the existing one. But I could do the count of singleton primes in Pari, even VBA if need be. If only I had the output file, and that's the remaining problem for me. The output only appears on the screen.

2019-06-20, 12:28   #116
robert44444uk

Jun 2003
Oxford, UK

3×54 Posts

Quote:
 Originally Posted by mart_r Okay, the gap searching program works on both of my PCs. If I did the math right, I'd be capable to do about 0.2e15 k per week. …. The output only appears on the screen.
0.2e15 is about the same as me.
…..
Are you working in a windows environment. then you could use the command:

c:\subdirectory\program_name.pl >> output_file.txt

Last fiddled with by robert44444uk on 2019-06-20 at 12:29

 2019-06-20, 12:49 #117 mart_r     Dec 2008 you know...around... 10578 Posts Perfect! So I'll take 4.5e15 to 5e15. Hoping to find some maximal gaps here, unlike during the prime gaps search
2019-06-22, 12:04   #118
mart_r

Dec 2008
you know...around...

13·43 Posts

Quote:
 Originally Posted by mart_r Okay, the gap searching program works on both of my PCs. If I did the math right, I'd be capable to do about 0.2e15 k per week.

A slight overestimation. It's only about 0.1e15 k per week. My range should be finished by early August, I hope you're not in a hurry. Also I already found a 5000+ gap:
Code:
5241 4902133285097972

 2019-06-22, 15:19 #119 Bobby Jacobs     May 2018 101111002 Posts I would like to help. How do I get the code for finding twin primes? Also, you should add your new gaps to OEIS.
2019-06-22, 15:32   #120
robert44444uk

Jun 2003
Oxford, UK

3·54 Posts

Quote:
 Originally Posted by Bobby Jacobs I would like to help. How do I get the code for finding twin primes? Also, you should add your new gaps to OEIS.
Code is at post 85 of this thread.

Why don't you take the role of OEIS representative? There are all sorts of interesting series generated by this group just in the last month.

2019-06-23, 06:12   #121
robert44444uk

Jun 2003
Oxford, UK

3×54 Posts

Quote:
 Originally Posted by mart_r A slight overestimation. It's only about 0.1e15 k per week. My range should be finished by early August, I hope you're not in a hurry. Also I already found a 5000+ gap: Code: 5241 4902133285097972
Not quite a maximal candidate, but almost certainly a first instance

 Similar Threads Thread Thread Starter Forum Replies Last Post Bobby Jacobs Prime Gap Searches 51 2020-07-09 07:49 Pietro Maiorana Twin Prime Search 8 2019-09-26 23:07 hal1se Miscellaneous Math 13 2018-11-05 16:34 carpetpool Miscellaneous Math 3 2017-08-10 13:47 PawnProver44 Miscellaneous Math 10 2016-04-10 19:32

All times are UTC. The time now is 21:14.

Sat Aug 8 21:14:51 UTC 2020 up 22 days, 17:01, 1 user, load averages: 1.23, 1.39, 1.40