![]() |
|
|
#12 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
For 62, the PRP is 3490-digit.
For 81, the PRP is 4834-digit. For 84, the PRP is 3057-digit. (these would be easy to prove prime) Last fiddled with by Batalov on 2012-07-16 at 21:08 |
|
|
|
|
|
#13 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23·3·5·72 Posts |
|
|
|
|
|
|
#14 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 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 2012-07-17 at 02:43 |
|
|
|
|
|
#15 |
|
Dec 2008
179 Posts |
By using a not-completely-insane 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).
|
|
|
|
|
|
#16 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 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? |
|
|
|
|
|
#17 |
|
Jun 2003
22·3·421 Posts |
Do you (the general "you") define the "first prime instance" using the starting position or the ending position?
Explicit clarification is called for. |
|
|
|
|
|
#18 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
100101000001012 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 5-6-digit 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 2012-07-17 at 08:44 |
|
|
|
|
|
#19 | |
|
"Ben"
Feb 2007
3·1,171 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 2012-07-17 at 15:15 |
|
|
|
|
|
|
#20 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 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 2012-07-18 at 01:01 Reason: Formula |
|
|
|
|
|
#21 |
|
May 2004
New York City
2×29×73 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. |
|
|
|
|
|
#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 | 2017-08-10 13:47 |
| Distribution of Mersenne primes before and after couples of primes found | emily | Math | 34 | 2017-07-16 18:44 |
| Conjecture about Mersenne primes and non-primes v2 | Mickey1 | Miscellaneous Math | 1 | 2013-05-30 12:32 |
| A conjecture about Mersenne primes and non-primes | Unregistered | Information & Answers | 0 | 2011-01-31 15:41 |
| possible primes (real primes & poss.prime products) | troels munkner | Miscellaneous Math | 4 | 2006-06-02 08:35 |