OFFSET
1,1
COMMENTS
This sequence is infinite. The number of primes that are not in this sequence is conjectured to be infinite.
Proof of first statement, following a comment from David W. Wilson: It follows from standard results about primes in short intervals (see for example Harman, 1982) that there are infinitely many numbers in any base b starting with any nonzero prefix c. So there are infinitely many primes whose binary expansion begins with s, and so a(n) always exists. - N. J. A. Sloane, Sep 19 2015
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..589
G. Harman, Primes in short intervals, Math. Zeit., 180 (1982), 335-348.
EXAMPLE
: 10 ... 2
: 11 ... 3
: 101 ... 5
: 111 ... 7
: 1101 ... 13
: 1011 ... 11
: 11101 ... 29
: 110101 ... 53
: 101011 ... 43
: 10111 ... 23
: 11111 ... 31
: 111101 ... 61
: 111011 ... 59
: 1101101 ... 109
: 10110101 ... 181
: 1101011 ... 107
: 10101101 ... 173
MAPLE
b:= proc() true end:
a:= proc(n) option remember; local h, k, ok, p, t;
if n=1 then p:=2
else h:= (k-> irem(k, 2^(ilog2(k))))(a(n-1)); p:= h;
ok:= isprime(p) and b(p);
for t while not ok do
for k to 2^t-1 while not ok do p:= h*2^t+k;
ok:= isprime(p) and b(p)
od
od
fi; b(p):= false; p
end:
seq(a(n), n=1..70);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alois P. Heinz, Sep 18 2015
STATUS
approved