mersenneforum.org  

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

Reply
 
Thread Tools
Old 2019-06-19, 21:41   #111
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

13·43 Posts
Default

Quote:
Originally Posted by robert44444uk View Post
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
mart_r is offline   Reply With Quote
Old 2019-06-19, 21:59   #112
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

45028 Posts
Default

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.
firejuggler is online now   Reply With Quote
Old 2019-06-20, 09:07   #113
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Oxford, UK

3×54 Posts
Default

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
File Type: txt first instance list 200619.txt (208.6 KB, 31 views)

Last fiddled with by robert44444uk on 2019-06-20 at 09:24
robert44444uk is offline   Reply With Quote
Old 2019-06-20, 09:12   #114
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Oxford, UK

3×54 Posts
Default

Quote:
Originally Posted by mart_r View Post

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
robert44444uk is offline   Reply With Quote
Old 2019-06-20, 12:16   #115
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

13×43 Posts
Default

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 View Post
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.
mart_r is offline   Reply With Quote
Old 2019-06-20, 12:28   #116
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Oxford, UK

3×54 Posts
Default

Quote:
Originally Posted by mart_r View Post

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
robert44444uk is offline   Reply With Quote
Old 2019-06-20, 12:49   #117
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

10578 Posts
Default

Perfect!
So I'll take 4.5e15 to 5e15. Hoping to find some maximal gaps here, unlike during the prime gaps search
mart_r is offline   Reply With Quote
Old 2019-06-22, 12:04   #118
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

13·43 Posts
Default

Quote:
Originally Posted by mart_r View Post
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
mart_r is offline   Reply With Quote
Old 2019-06-22, 15:19   #119
Bobby Jacobs
 
Bobby Jacobs's Avatar
 
May 2018

101111002 Posts
Default

I would like to help. How do I get the code for finding twin primes? Also, you should add your new gaps to OEIS.
Bobby Jacobs is offline   Reply With Quote
Old 2019-06-22, 15:32   #120
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Oxford, UK

3·54 Posts
Default

Quote:
Originally Posted by Bobby Jacobs View Post
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.
robert44444uk is offline   Reply With Quote
Old 2019-06-23, 06:12   #121
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Oxford, UK

3×54 Posts
Default

Quote:
Originally Posted by mart_r View Post
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
robert44444uk is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gaps between maximal prime gaps Bobby Jacobs Prime Gap Searches 51 2020-07-09 07:49
I found a sieve to search all pairs of twin primes Pietro Maiorana Twin Prime Search 8 2019-09-26 23:07
find very easy twin prime in the infamy twin primes hal1se Miscellaneous Math 13 2018-11-05 16:34
Mersenne Primes p which are in a set of twin primes is finite? carpetpool Miscellaneous Math 3 2017-08-10 13:47
Gaps of Primes? 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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.