OFFSET
1,2
COMMENTS
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..62 (terms < 10^12)
Re: 2^k - prime(p) or prime(p) - 2^k ?, SeqFan mailing list, Apr 10 2013
EXAMPLE
A000040(50) = 229: 50->110010, 229->11100101 = 1'110010'1, therefore 50 is a term.
prime(4189897) = 100001111111110111011001001[2] = 2^26 + 4189897. Apart from p=2 and p=3, this is the only prime below primepi(10^8) such that prime(p)-p = 2^k. See A221860 for further examples. - M. F. Hasler, Apr 10 2013
MATHEMATICA
Select[Range[800000], SequenceCount[IntegerDigits[Prime[#], 2], IntegerDigits[#, 2]]>0&] (* The program generates the first 25 terms of the sequence. *) (* Harvey P. Dale, Nov 04 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Dec 14 2003
EXTENSIONS
a(22)-a(34) from Donovan Johnson, May 08 2012
STATUS
approved