OFFSET
1,1
PROG
(Python 3.10+)
from itertools import count, islice
from sympy import prevprime
def A064503_gen(): # generator of terms
return islice(filter(lambda n:n-n.bit_count()==prevprime(n), count(3)), 0, None, 2)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Oct 05 2001
STATUS
approved