login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A181748
Twin primes not of the form p+2^k where p is prime and k>0.
1
3, 149, 599, 809, 1019, 1619, 2789, 2999, 3119, 3299, 3539, 4001, 4229, 4271, 4649, 5099, 6269, 6449, 6659, 6791, 6869, 7331, 7547, 8087, 8387, 8429, 8861, 9239, 9431, 9929, 10007, 11069, 11171, 11549, 12239, 12251, 13001, 13217, 13679, 13901, 14009, 14081, 14249
OFFSET
1,1
LINKS
EXAMPLE
149 is a twin prime, 149-2^1 through 149-2^7 are all nonprime.
MATHEMATICA
seqQ[p_] := PrimeQ[p] && PrimeQ[p + 2] && Module[{k = 2}, While[k < p && !PrimeQ[p - k], k *= 2]; k > p]; Select[Range[10^4], seqQ] (* Amiram Eldar, Dec 24 2019 *)
CROSSREFS
Sequence in context: A003009 A037122 A213989 * A118840 A111816 A157555
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited and extended by D. S. McNeil, Nov 17 2010
More terms from Amiram Eldar, Dec 24 2019
STATUS
approved