OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The 15th prime is 47, while the 15th nonprime is 24. 47+24=71 which is itself prime. Similarly, the 30th prime is 113, while the 30th nonprime is 44. 113+44=157 which is prime.
MATHEMATICA
Module[{nn=500, np, tbl}, np=Select[Range[nn], !PrimeQ[#]&]; tbl=Table[{n, np[[n]]+Prime[n]}, {n, Length[ np]}]; Select[tbl, PrimeQ[#[[2]]]&]][[;; , 1]] (* Harvey P. Dale, Sep 21 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason G. Wurtzel, Nov 22 2006
EXTENSIONS
More terms from Klaus Brockhaus, Nov 23 2006
STATUS
approved