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”).

A174272
Exactly one of 2^n-3 and 2^n+3 is prime.
0
1, 2, 5, 7, 9, 10, 14, 15, 16, 18, 20, 22, 24, 28, 29, 30, 55, 67, 84, 94, 116, 122, 150, 174, 213, 221, 228, 233, 266, 336, 390, 452, 545, 689, 694, 784, 850, 1110, 1704, 1736, 2008, 2139, 2191, 2321, 2367, 2370, 3237, 3954, 4002, 4060, 4062, 4552, 5547, 5630
OFFSET
1,2
COMMENTS
Numbers n which are in A050414 or in A057732 but not in both. [From R. J. Mathar, Mar 29 2010]
EXAMPLE
a(1)=1 because 2^1-3=-1 is nonprime and 2^1+3=5 is prime.
CROSSREFS
Sequence in context: A181713 A047482 A367491 * A062288 A077059 A260166
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected by Charles R Greathouse IV, Mar 20 2010
STATUS
approved