mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2018-02-09, 20:41   #78
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

29716 Posts
Default

Quote:
Originally Posted by MattcAnderson View Post
Hi,
I believe I understand the original puzzle.
Actually, the original puzzle was wrongly phrased. The correctly phrased puzzle is:
"Given two intervals of the same size, A = [a, a+x] and B = [b, b+x] with b > a, where there are no primes in A, find as many primes as possible in B."
(Is there any chance this can be modified in the OP?)

One or two new ideas prompted me to continue my work on this, and right now I'm at 96 primes.
I'll let the program run for another week or two, hoping to find a 100 (which seems unlikely, but not impossible to find), and then post results. Unless someone can beat me at this game.
mart_r is offline   Reply With Quote
Old 2018-02-10, 04:06   #79
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

4,861 Posts
Default

What interval length? Your new phrasing makes x appear arbitrary; is that your intent, or are you pursuing a record for a specific interval length?
VBCurtis is offline   Reply With Quote
Old 2018-02-10, 13:46   #80
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by mart_r View Post
Actually, the original puzzle was wrongly phrased. The correctly phrased puzzle is:
"Given two intervals of the same size, A = [a, a+x] and B = [b, b+x] with b > a, where there are no primes in A, find as many primes as possible in B."
(Is there any chance this can be modified in the OP?)

One or two new ideas prompted me to continue my work on this, and right now I'm at 96 primes.
I'll let the program run for another week or two, hoping to find a 100 (which seems unlikely, but not impossible to find), and then post results. Unless someone can beat me at this game.
We know that (n#,n#+nextprime(n)-1) is an interval with no primes. The interval including endpoints has nextprime(n) numbers. Via pigeonhole principle, we get there can be at most eulerphi(nextprime(n)-1)+1 or (nextprme(n)-1)/3 whichever is lower.
science_man_88 is offline   Reply With Quote
Old 2018-02-10, 14:06   #81
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

3·13·17 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
What interval length? Your new phrasing makes x appear arbitrary; is that your intent, or are you pursuing a record for a specific interval length?
That is actually sort of intended. x must come from a previously known prime gap, and choosing such a gap is not necessarily trivial for finding the primes in B.
mart_r is offline   Reply With Quote
Old 2018-02-10, 15:14   #82
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

3·13·17 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
We know that (n#,n#+nextprime(n)-1) is an interval with no primes. The interval including endpoints has nextprime(n) numbers. Via pigeonhole principle, we get there can be at most eulerphi(nextprime(n)-1)+1 or (nextprme(n)-1)/3 whichever is lower.
It's not about the theoretical number of primes (a.k.a. k-tuple conjecture) but actual results. You'd have a hard time finding 96 primes in an interval of, say, [n#+2, n#+n+1] where the primes must be as big as n#.

The Gapcoin-gap with an interval of 8349 consecutive composite integers is a very good point of reference for this puzzle, since it has the highest known merit and the primes involved are with 87 digits relatively small. Below 87 digits, the TOeSilva gap of 1476 would be next best, but the chances of finding a large number of primes in an interval where on average 42 primes are expected is at some point bigger compared to the advantage of speed where smaller numbers are involved.

Last fiddled with by mart_r on 2018-02-10 at 15:15
mart_r is offline   Reply With Quote
Old 2018-02-10, 15:31   #83
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by mart_r View Post
It's not about the theoretical number of primes (a.k.a. k-tuple conjecture) but actual results. You'd have a hard time finding 96 primes in an interval of, say, [n#+2, n#+n+1] where the primes must be as big as n#.

The Gapcoin-gap with an interval of 8349 consecutive composite integers is a very good point of reference for this puzzle, since it has the highest known merit and the primes involved are with 87 digits relatively small. Below 87 digits, the TOeSilva gap of 1476 would be next best, but the chances of finding a large number of primes in an interval where on average 42 primes are expected is at some point bigger compared to the advantage of speed where smaller numbers are involved.
But theory tells you were you can find them to narrow the search so your example for 100 needs eulerphi(nextprime(n)-1) to be 99 in theory ( without pointing out that interval and gap aren't the same) from this we get that there is no easy interval, because 99 is not a totient.
science_man_88 is offline   Reply With Quote
Old 2018-02-11, 03:52   #84
axn
 
axn's Avatar
 
Jun 2003

22·3·421 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
We know that (n#,n#+nextprime(n)-1) is an interval with no primes.
Do we know this? What about n#+1?
axn is online now   Reply With Quote
Old 2018-02-11, 11:19   #85
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by axn View Post
Do we know this? What about n#+1?
Yeah I realized that.
science_man_88 is offline   Reply With Quote
Old 2018-02-11, 18:55   #86
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

3×13×17 Posts
Default YES!

Code:
There are   0 primes among 8349 consecutive integers starting from 293703234068022590158723766104419463425709075574811762098588798217895728858676728143228.
There are 100 primes among 8349 consecutive integers starting from 295160409843753748151012998579391505598704703954606722982263291976741858941955805490779.
In fact, these 100 primes only need an interval of 8263 consecutive integers.
mart_r is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sieving with powers of small primes in the Small Prime variation of the Quadratic Sieve mickfrancis Factoring 2 2016-05-06 08:13
A small puzzle Dubslow Puzzles 18 2015-12-01 07:41
Zeta nontrivial zeros list Damian Analysis & Analytic Number Theory 11 2013-01-11 05:54
New puzzle about prime wpolly Puzzles 2 2009-07-02 20:27
Prime Puzzle #190 rogue Puzzles 17 2006-09-15 19:08

All times are UTC. The time now is 03:38.


Sat Jul 17 03:38:21 UTC 2021 up 50 days, 1:25, 1 user, load averages: 1.10, 1.61, 1.61

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