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.

A084198 Primes p such that there exists exactly one prime q

Original entry on oeis.org

5, 7, 19, 43, 67, 97, 163, 181, 211, 283, 331, 349, 523, 547, 601, 691, 787, 853, 907, 937, 1021, 1051, 1123, 1171, 1429, 1531, 1549, 1723, 1777, 1867, 2011, 2029, 2053, 2083, 2113, 2251, 2281, 2347, 2371, 2467, 2521, 2707, 2731, 2749, 2803, 2971, 3067
Offset: 1

Views

Author

Reinhard Zumkeller, May 18 2003

Keywords

Comments

A084196(A049084(a(n)))=1.

Programs

  • Haskell
    a084198 n = a084198_list !! (n-1)
    a084198_list = map a000040 $ filter ((== 1) . a084196) [1..]
    -- Reinhard Zumkeller, Jan 06 2014
  • Mathematica
    pdQ[n_]:=Module[{prs=Prime[Range[500]],p1},p1=Select[prs,#?(Divisible[n+1,#]&)]==1]; Select[Prime[Range[500]],pdQ] (* _Harvey P. Dale, Dec 24 2013 *)

Extensions

Corrected by T. D. Noe, Oct 25 2006