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.

A158713 Primes p such that p1=Ceiling[p/2]+p is prime and p2=Ceiling[p1/2]+p is prime.

Original entry on oeis.org

7, 47, 127, 167, 239, 439, 479, 607, 967, 1319, 1559, 1999, 2239, 2447, 2719, 3359, 4007, 4327, 4967, 5039, 5279, 5407, 5879, 6007, 6287, 7127, 7607, 8167, 8447, 8527, 8999, 9127, 9439, 9967, 10487, 11087, 11287, 11399, 11527, 11719, 11927, 11959, 12479
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    cpQ[n_]:=Module[{p1=Ceiling[n/2]+n},AllTrue[{p1,Ceiling[p1/2]+n}, PrimeQ]]; Select[Prime[Range[2000]],cpQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 29 2017 *)

Extensions

Corrected and incorrect Mathematica program deleted by Harvey P. Dale, May 29 2017