OFFSET
1,1
COMMENTS
By the conjecture in A235919, this sequence should have infinitely many terms.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 17 with prime(17) - 17 + 1 = 59 - 16 = 43 and (17^2 - 1)/4 - prime(17) = 72 - 59 = 13 both prime.
MATHEMATICA
PQ[n_]:=n>0&&PrimeQ[n]
p[n_]:=PrimeQ[Prime[n]-n+1]&&PQ[(n^2-1)/4-Prime[n]]
n=0; Do[If[p[Prime[k]], n=n+1; Print[n, " ", Prime[k]]], {k, 1, 1000}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 17 2014
STATUS
approved