20120716, 20:54  #12 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2^{2}·7·331 Posts 
For 62, the PRP is 3490digit.
For 81, the PRP is 4834digit. For 84, the PRP is 3057digit. (these would be easy to prove prime) Last fiddled with by Batalov on 20120716 at 21:08 
20120716, 21:22  #13 
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
5·19·61 Posts 

20120716, 21:25  #14 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2^{2}·7·331 Posts 
I have 50000 Pi digits dumped from gp and then prefiltered by a simple perl script that takes care of small factors of 2,5 (easy!) and 3 (simple sum of digits). 7 and 11 could be easily added but is not of significant help.
Then the candidate file goes to pfgw f. All very easy, very 'umble. For 20, 80, 96 and 98, the PRPs would be larger than 30,000 digits now. Last fiddled with by Batalov on 20120717 at 02:43 
20120717, 07:17  #15 
Dec 2008
263_{8} Posts 
By using a notcompletelyinsane method. In the outer loop, you take the first N digits of pi; in the inner loop, you take the last M digits of those N digits and test if that number begins with the specified digit(s) and is prime. Optimizations are possible: the outer loop can skip those N where the last digit is even, and the inner loop can keep a table of the positions of the starting digit(s).

20120717, 07:57  #16 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2^{2}·7·331 Posts 
That's not what I meant. The inner loop is already done to death. You simply cannot use the outer loop (as the problem is stated).
Suppose we are searching for a(20). Code:
pi = 3. 14159265358979323846264338327950288419716939937510 58209749445923078164062862089986280348253421170679 82148086513282306647093844609550582231725359408128 48111745028410270193852110555964462294895493038196... We can only move on to the next instance of the starting point after we have proven that there are no primes formed by the first instance. Can we prove that? 
20120717, 08:21  #17 
Jun 2003
4850_{10} Posts 
Do you (the general "you") define the "first prime instance" using the starting position or the ending position?
Explicit clarification is called for. 
20120717, 08:29  #18 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2^{2}×7×331 Posts 
The problem is stated somewhat loosely and is open to interpretations.
Clearly we can all agree that the first, say, '3' after the prefix is not what OP intended. (Even though he wrote, "the first prime constructed from the subsequent digits".) But I can see how you can interpret that as the string becomes longer it absorbes more instances of the prefix and you can hop onto that prefix. I think that this variant is too easy. It probably can be solved up to 56digit values. Too easy. Indeed, I am interested in the hard variant (For a given number n, find the leftmost instance of a prime substring in decimal expansion of pi that starts with n.) It can still be not the first useable prefix. P.S. For the easy interpretation, 1 > 41, isn't it? Maybe not (that's yet another interpretation). But surely, for the easy interpretation, 9 > 97 Last fiddled with by Batalov on 20120717 at 08:44 
20120717, 15:14  #19  
"Ben"
Feb 2007
2×41^{2} Posts 
Quote:
edit: here is where it would be nice for RDS to come around, slap me upside the head, and give a correct answer. I just put my $0.02 worth of thought into it. Last fiddled with by bsquared on 20120717 at 15:15 

20120717, 18:26  #20 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2^{2}·7·331 Posts 
80 > 8034825342...6216977871_{<41938>}
Formula: floor(Pi*10^42021)%(10^41938). (Submitted to Lifchitz&Lifchitz...) edit: I just put my $0.25 in the swear jar. B> Last fiddled with by Batalov on 20120718 at 01:01 Reason: Formula 
20120717, 20:42  #21 
May 2004
New York City
2^{3}·23^{2} Posts 
Indeed, the problem being solved by Batalov and henryzz et.al.
is the one I intended in the OP. Only if no prime exists in pi at a found point should the next occurrence of the integer be used. I see why this wasn't all clear in the OP. 
20120718, 03:00  #22 
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 89<O<88
3·29·83 Posts 
I Am Not A National Treasure???

Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Mersenne Primes p which are in a set of twin primes is finite?  carpetpool  Miscellaneous Math  3  20170810 13:47 
Distribution of Mersenne primes before and after couples of primes found  emily  Math  34  20170716 18:44 
Conjecture about Mersenne primes and nonprimes v2  Mickey1  Miscellaneous Math  1  20130530 12:32 
A conjecture about Mersenne primes and nonprimes  Unregistered  Information & Answers  0  20110131 15:41 
possible primes (real primes & poss.prime products)  troels munkner  Miscellaneous Math  4  20060602 08:35 