cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A172458 Nonprimes n such that exactly one of 2n-1 and 2n+1 is prime.

Original entry on oeis.org

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

Views

Author

Juri-Stepan Gerasimov, Feb 03 2010

Keywords

Programs

  • Mathematica
    Select[Range[150],!PrimeQ[#]&&Total[Boole[PrimeQ[2 #+{1,-1}]]]==1&] (* Harvey P. Dale, Aug 27 2024 *)

Extensions

Edited by Charles R Greathouse IV, Mar 25 2010