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.

A065396 Primes of the form p + k*(k+1) / 2, p prime and k > 0.

Original entry on oeis.org

3, 5, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 05 2001

Keywords

Comments

a(2) = 11 = 5 + 3*(3+1) / 2.

Crossrefs

Programs

  • Mathematica
    Module[{upto=300,trs},trs=Accumulate[Range[(Sqrt[1+8upto]-1)/2]];Select[ Flatten[ Table[p+trs,{p,Prime[Range[PrimePi[upto]]]}]],PrimeQ[#] && #<=upto&]]//Union (* Harvey P. Dale, Dec 16 2017 *)