A078686 Primes prime(k) such that 2^k - prime(k) is also prime.
5, 31, 67, 89, 101, 283, 503, 1039, 1129, 2069, 3457, 5641, 45763, 71483, 86599, 112921, 161411, 210173, 211007, 232741, 245269, 479029, 1078589
Offset: 1
Examples
a(1)=5 since 5 is the third prime number and 2^3-5 = 3 is prime. - _Robert G. Wilson v_, Jul 06 2014
Programs
-
Mathematica
p = 2; lst = {}; While[p < 760001, If[ PrimeQ[ 2^PrimePi@ p - p], AppendTo[lst, p]; Print@ p]; p = NextPrime@ p]; lst (* Robert G. Wilson v, Jul 06 2014 *) Select[Table[{n,Prime[n]},{n,40000}],PrimeQ[2^#[[1]]-#[[2]]]&][[All,2]] (* Harvey P. Dale, Feb 19 2020 *)
Extensions
Edited (corrected title) and extended by Robert G. Wilson v, Jul 06 2014
a(23) from Michael S. Branicky, May 29 2025
Comments