OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
89 is a term as the next prime 97 differs from it by 8, a power of 2.
MATHEMATICA
Select[Partition[Prime[Range[100]], 2, 1], IntegerQ[Log2[#[[2]]-#[[1]]]]&][[All, 1]] (* Harvey P. Dale, Apr 22 2019 *)
PROG
(PARI) ispow2(n)=n>>valuation(n, 2)==1
v=List(); p=2; forprime(q=3, 1e6, if(ispow2(q-p), listput(v, p)); p=q); Vec(v) \\ Charles R Greathouse IV, Sep 18 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, May 22 2001
EXTENSIONS
Extended by Patrick De Geest, May 27 2001
STATUS
approved