A145651 Linking prime for the second and third member of maximal chains of primes that have at least three members.
83, 271, 1553, 2693, 5051, 10651, 23333, 34123, 219389, 230933, 312007, 338017, 395309, 512891, 699437, 763999, 815257, 1078127, 1208791, 1417019, 1577561, 1629083, 2420609, 2787947, 2868787, 2944429, 3038639, 3222101, 3868201
Offset: 1
Keywords
Examples
Primes 13, 17, 19, 23 have prime indices 6, 7, 8, 9. 6*13 + 7*17 = 197 is prime; 7*17 + 8*19 = 271 is prime; 8*19 + 9*23 = 359 is prime. Neither 5*11 + 6*13 = 133 nor 9*23 + 10*29 = 497 is prime, so 13, 17, 19, 23 is maximal. Hence 7*17 + 8*19 = 271, the linking prime for 17 and 19, is in the sequence.
Links
- Carlos Rivera, Puzzle 463
Crossrefs
Programs
-
Magma
[ (n+1)*q+(n+2)*r: n in [1..520] | (n eq 1 or not IsPrime((n-1)*PreviousPrime(p)+n*p) ) and IsPrime(n*p+(n+1)*q) and IsPrime((n+1)*q+(n+2)*r) where r is NextPrime(q) where q is NextPrime(p) where p is NthPrime(n) ]; // Klaus Brockhaus, Dec 11 2008
-
PARI
{n=1; while(n<520, c=0; while(isprime(b=n*prime(n)+(n+1)*prime(n+1)), c++; n++; if(c==2, a=b)); if(c>1, print1(a, ",")); n++)}
Extensions
Edited by Klaus Brockhaus, Dec 10 2008
Comments