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.

A145485 Primes p such that 2*p - 31 is prime.

Original entry on oeis.org

17, 19, 31, 37, 67, 79, 97, 127, 151, 157, 181, 199, 277, 331, 337, 379, 409, 421, 457, 499, 541, 547, 577, 601, 631, 661, 727, 739, 751, 757, 787, 829, 877, 907, 991, 1009, 1021, 1087, 1117, 1171, 1201, 1249, 1291, 1381, 1399, 1459, 1549, 1597, 1609, 1669
Offset: 1

Views

Author

Artur Jasinski, Oct 11 2008

Keywords

Crossrefs

Programs

  • Mathematica
    aa = {}; k = 31; Do[If[PrimeQ[(k + Prime[n])/2], AppendTo[aa, (k + Prime[n])/2]], {n, 1, 500}];aa
  • PARI
    list(lim)=my(v=List()); forprime(p=2,lim, if(isprime(2*p-31), listput(v,p))); Vec(v) \\ Charles R Greathouse IV, Jan 23 2017

Formula

a(n) = 2*A145479(n) - 31.