login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A061771 Primes p(k) such that p(k+1) - p(k) = 2^m for some m (smaller of a pair of consecutive primes which differ by a power of 2). 2
2, 3, 5, 7, 11, 13, 17, 19, 29, 37, 41, 43, 59, 67, 71, 79, 89, 97, 101, 103, 107, 109, 127, 137, 149, 163, 179, 191, 193, 197, 223, 227, 229, 239, 269, 277, 281, 307, 311, 313, 347, 349, 359, 379, 389, 397, 401, 419, 431, 439, 449, 457, 461, 463, 479, 487, 491 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A004051 A127047 A119615 * A124589 A079150 A177000
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, May 22 2001
EXTENSIONS
Extended by Patrick De Geest, May 27 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 7 00:25 EDT 2024. Contains 372298 sequences. (Running on oeis4.)