OFFSET
2,1
EXAMPLE
9 is in the sequence because p(9)=23, p(23)=83 and (23+83)/2 is prime.
MAPLE
a:=proc(n) if isprime((ithprime(n)+ithprime(ithprime(n)))/2)=true then n else fi end: seq(a(n), n=2..800);
MATHEMATICA
Select[Range[700], PrimeQ[Mean[{Prime[#], Prime[Prime[#]]}]]&] (* Harvey P. Dale, Nov 18 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Feb 20 2007
STATUS
approved