OFFSET
1,1
COMMENTS
PARI program written by Rick L. Shepherd.
If n is in the sequence and n>5 then Mod[n,30]=29. - Farideh Firoozbakht, Mar 26 2004
REFERENCES
EXAMPLE
5,7 form a twin pair, separated by the number 6. Their sum 12 is the separator of another twin pair, 11,13. _Their_ sum is not the separator of a further twin pair. (5,7),(11,13) is a chain of length 2. 5 is the lower of the smallest twin pair to generate a chain of this length, so a(2)=5.
Here are the actual chains (lesser of twin primes given): 3; 5 -> 11; 211049 -> 422099 -> 844199; 253679 -> 507359 -> 1014719 -> 2029439; 41887255409 -> 83774510819 -> 167549021639 -> 335098043279 -> 670196086559; ...
PROG
(PARI) for(n=1, 40000, if(prime(n+1)-prime(n)==2, s=prime(n+1)+prime(n); if(isprime(s-1)&&isprime(s+1), if(isprime(2*s-1)&&isprime(2*s+1), print(n, ", ", prime(n))))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Neil Fernandez, Apr 10 2002
STATUS
approved