OFFSET
1,1
COMMENTS
Corresponding values of q: 2, 3, 5, 11, 17, 29, 47, 59, 71, 89, 107.
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
MATHEMATICA
p=3; s={p}; Do[q=Prime[n]; If[PrimeQ[(p+q)/4], AppendTo[s, q]; p=q], {n, 3, 1000}]; s
nxt[n_]:=Module[{p=NextPrime[n]}, While[!PrimeQ[(n+p)/4], p=NextPrime[ p]]; p]; NestList[nxt, 3, 50] (* Harvey P. Dale, Nov 25 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Aug 27 2012
STATUS
approved