OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2)=5 because 5+2 and 11+2 are primes.
MATHEMATICA
pqr[n_]:=Module[{p=3}, While[AnyTrue[{p+2, NextPrime[p, n]+2}, CompositeQ], p= NextPrime[p]]; p]; Table[pqr[n], {n, 90}] (* Harvey P. Dale, Nov 12 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, May 02 2005
EXTENSIONS
Edited by Don Reble, Jun 11 2007
STATUS
approved