OFFSET
1,1
EXAMPLE
2^5 + p(5) = 32 + 11 = 43; 43 is prime, hence 5 is in the sequence.
2^11 - p(11) = 2048 - 31 = 2017; 2017 is prime, therefore 11 is in the sequence.
MATHEMATICA
Select[Range[2000], PrimeQ[2^# - Prime[ # ]] || PrimeQ[2^# + Prime[ # ]] &]
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot, Jun 19 2007
EXTENSIONS
Edited and extended by Stefan Steinerberger, Jun 24 2007
STATUS
approved