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

A172458
Nonprimes n such that exactly one of 2n-1 and 2n+1 is prime.
2
1, 4, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 27, 33, 34, 35, 39, 40, 42, 44, 45, 48, 49, 50, 52, 55, 56, 57, 63, 64, 65, 66, 68, 70, 74, 76, 78, 81, 82, 84, 86, 87, 91, 95, 98, 100, 105, 106, 111, 112, 115, 116, 117, 119, 121, 125, 126, 128, 129, 132, 134, 136, 138, 140
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[150], !PrimeQ[#]&&Total[Boole[PrimeQ[2 #+{1, -1}]]]==1&] (* Harvey P. Dale, Aug 27 2024 *)
CROSSREFS
Sequence in context: A029886 A102218 A257586 * A175226 A057166 A358228
KEYWORD
nonn,easy,less
AUTHOR
EXTENSIONS
Edited by Charles R Greathouse IV, Mar 25 2010
STATUS
approved