OFFSET
1,2
COMMENTS
Question: If A059661 could be extended infinitely, would all the natural numbers > 1 eventually appear here once?
a(31) > 27000. - Michael S. Branicky, Oct 02 2022
FORMULA
EXAMPLE
MAPLE
PROG
(Python)
from sympy import isprime
from itertools import islice
def agen():
an, bit, p = 2, 1, 0
while True:
while an&bit or not isprime(an+bit): bit <<= 1; p += 1
yield p
an, bit, p = an+bit, 1, 0
print(list(islice(agen(), 26))) # Michael S. Branicky, Oct 01 2022
CROSSREFS
KEYWORD
nonn,more,base
AUTHOR
Antti Karttunen, Feb 03 2001
EXTENSIONS
a(21)-a(27) from Sean A. Irvine, Oct 01 2022
a(28)-a(30) from Michael S. Branicky, Oct 02 2022
a(31)-a(35) from Michael S. Branicky, May 29 2023
STATUS
approved