OFFSET
1,1
COMMENTS
Probably an infinite sequence. Using the UB874 program (UBASIC) I found the first 123 primes of the sequence for i <= 382. I think I have a proof that the sequence is infinite.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..104 (first 128 terms from Robert G. Wilson v) (shortened by N. J. A. Sloane, Jan 13 2019)
EXAMPLE
17=3*P(2)#-1 and 19=3*P(2)#+1 are twin primes, so 17 is in the sequence, corresponding to i=2, j=3. Again, 182*2633#-1 and 182*2633#+1 are prime twins, with j=182, i=382. These are 1111-digit twin primes.
The above prime is a(124). - Robert G. Wilson v, Jul 22 2015
MATHEMATICA
f[n_] := Range[Prime[n + 1] - 1] Times @@ Prime@ Range@ n; s = Select[ Union@ Flatten@ Join[ Array[f, 10] - 1, Array[f, 11, 0] + 1], PrimeQ@# &]; s[[Select[ Range[-1 + Length@ s], s[[#]] + 2 == s[[# + 1]] &]]] (* Robert G. Wilson v, Jul 22 2015 *)
PROG
(PARI) do(lastprime)=my(v=List(), P=1, p=2); forprime(q=3, nextprime(lastprime\1+1), P*=p; for(j=1, q-1, if(isprime(j*P-1)&&isprime(j*P+1), listput(v, j*P-1))); p=q); Vec(v) \\ Charles R Greathouse IV, Jul 22 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Sep 29 2003
EXTENSIONS
Edited by Jud McCranie, Oct 06 2003
Corrected by T. D. Noe, Nov 15 2006
STATUS
approved