OFFSET
1,1
MATHEMATICA
Do[ns[k] = 0, {k, 1, 2000}]; n2 = 0; n1 = 1; While[n2 <= 200, n1++; p1 = Prime[n1]; n2 = 1; p2 = 2; While[cp = p1 + 2*p2; ! PrimeQ[cp], n2++; p2 = Prime[n2]]; If[ns[n2] == 0, ns[n2] = n1; Print[n2, "[", n1, "]"]]]; Table[ns[k], {k, 1, n2}]
PROG
(Haskell)
import Data.List (elemIndex); import Data.Maybe (fromJust)
a114229 = (+ 2) . fromJust . (`elemIndex` (map a114228 [2..]))
-- Reinhard Zumkeller, Oct 31 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Lei Zhou, Nov 18 2005
EXTENSIONS
Edited definition to conform to OEIS style. - Reinhard Zumkeller, Oct 31 2013
STATUS
approved