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.

Showing 1-2 of 2 results.

A157978 Primes p such that 4*p - 3 is also a prime.

Original entry on oeis.org

2, 5, 11, 19, 23, 29, 59, 61, 71, 79, 89, 101, 103, 109, 113, 131, 149, 151, 191, 193, 233, 239, 263, 283, 313, 331, 353, 359, 373, 389, 401, 431, 439, 479, 499, 521, 523, 541, 569, 571, 599, 619, 631, 653, 659, 673, 683, 701, 709, 739, 743, 751, 761, 773, 829
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    [n: n in [0..2000] | IsPrime(n) and IsPrime(4*n - 3)]; // Vincenzo Librandi, Feb 03 2014
  • Mathematica
    q=3;lst={};Do[p=Prime[n];If[PrimeQ[(q+1)*p-q],AppendTo[lst,p]],{n,6!}];lst
    Select[Prime[Range[1000]],PrimeQ[4 # - 3]&] (* Vincenzo Librandi, Feb 03 2014 *)

A167464 Primes p such that 20*p+19 is composite.

Original entry on oeis.org

5, 7, 13, 19, 31, 37, 43, 47, 53, 59, 61, 67, 73, 79, 83, 89, 97, 103, 107, 109, 113, 127, 131, 137, 139, 151, 157, 163, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 241, 257, 271, 277, 283, 307, 311, 313, 331, 337, 349, 359, 367, 373, 379, 383, 389
Offset: 1

Views

Author

Vincenzo Librandi, Nov 04 2009

Keywords

Crossrefs

Cf. A157977.

Programs

  • Magma
    [p: p in PrimesUpTo(400) | not IsPrime(20*p+19)]; // Vincenzo Librandi, Feb 15 2014
  • Mathematica
    Select[Prime[Range[500]], !PrimeQ[20 # + 19] &]
    (* Vincenzo Librandi, Feb 15 2014 *)
Showing 1-2 of 2 results.