cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A262284 Primes whose binary expansion begins 101.

Original entry on oeis.org

5, 11, 23, 41, 43, 47, 83, 89, 163, 167, 173, 179, 181, 191, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 1283, 1289, 1291, 1297, 1301, 1303, 1307, 1319, 1321, 1327, 1361, 1367, 1373, 1381, 1399
Offset: 1

Views

Author

N. J. A. Sloane, Sep 19 2015

Keywords

Crossrefs

Primes whose binary expansion begins with binary expansion of 1, 2, 3, 4, 5, 6, 7: A000040, A080165, A080166, A262286, A262284, A262287, A262285.
Suggested by A262350.
Column k=5 of A262365.

Programs

  • Maple
    lis:=[]; q:=5;
    for i from 1 to 10 do for j from 1 to 2^i-1 do
    if isprime(q*2^i+j) then lis:=[op(lis),q*2^i+j]; fi; od: od:
    lis;
  • Mathematica
    Select[Flatten[Table[FromDigits[#,2]&/@(Join[{1,0,1},#]&/@Tuples[{0,1},n]),{n,0,10}]],PrimeQ] (* Harvey P. Dale, Oct 17 2021 *)