OFFSET
1,1
COMMENTS
Numbers m such that A109925(m) > 1.
EXAMPLE
4 is a term since 4 = 2^0 + 3 = 2^1 + 2 which is 2 ways.
6 is a term since 6 = 2^0 + 5 = 2^2 + 2.
PROG
(PARI) isok(m) = sum(k=0, logint(m, 2), isprime(m-2^k)) > 1; \\ Michel Marcus, Nov 10 2023
(Python)
from itertools import count, islice
from sympy import isprime
def A367186_gen(startvalue=1): # generator of terms >= startvalue
for n in count(max(startvalue, 1)):
c = 0
for i in range(n.bit_length()-1, -1, -1):
if isprime(n-(1<<i)):
c+=1
if c>1:
yield n
break
CROSSREFS
KEYWORD
nonn
AUTHOR
Yuda Chen, Nov 08 2023
STATUS
approved