OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4) = 641 is a member because 641+2 = 643, 641+32 = 673, 641+128 = 769 and 641+512=1153 are prime and 2+32+128+512 = 674 > 641.
MAPLE
filter:= proc(p) local i;
convert(select(t -> isprime(p+t), [seq(2^i, i=1..ilog2(p))]), `+`) > p
end proc:
select(filter, [seq(ithprime(i), i=1..10000)]);
MATHEMATICA
filterQ[p_] := Total@Select[2^Range[Length[IntegerDigits[p, 2]]-1], PrimeQ[p+#]&] > p;
Select[Prime[Range[10000]], filterQ] (* Jean-François Alcover, Jun 11 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jun 10 2021
STATUS
approved