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.

A134124 Primes p such that q-p = 50, where q is the next prime after p.

Original entry on oeis.org

31907, 45893, 60539, 69263, 95651, 112691, 162293, 167543, 172883, 181553, 197837, 206699, 212507, 220613, 225167, 246839, 272813, 274529, 291569, 293021, 298943, 334793, 338609, 345329, 349241, 355211, 362801, 368957, 369419, 380657
Offset: 1

Views

Author

Rick L. Shepherd, Oct 08 2007

Keywords

Crossrefs

Cf. A134123.

Programs

  • Maple
    a:=proc(n) if nextprime(ithprime(n))-ithprime(n)=50 then ithprime(n) else end if end proc: seq(a(n),n=1..40000); # Emeric Deutsch, Oct 24 2007
  • Mathematica
    Transpose[Select[Partition[Prime[Range[40000]],2,1],#[[2]]-#[[1]] == 50&]][[1]] (* Harvey P. Dale, Feb 27 2015 *)
  • PARI
    is(n)=nextprime(n+1)==n+50 && isprime(n) \\ Charles R Greathouse IV, Sep 14 2015

Formula

a(n) >> n log^2 n. - Charles R Greathouse IV, Sep 14 2015