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-1 of 1 results.

A256302 Least prime p such that p+3*k*(k+1) is prime for all k=0,...,n.

Original entry on oeis.org

2, 5, 5, 5, 11, 11, 11, 11, 11, 11, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23
Offset: 0

Views

Author

M. F. Hasler, Apr 05 2015

Keywords

Comments

Inspired by the so-called prime-generating polynomials.
Since p | 3n(n+1) for n=p-1, one has a(n) > p(n). Otherwise stated, a(p-1) = p (as, e.g., for p=23) is optimal.

Crossrefs

Programs

  • PARI
    a(n)=forprime(p=1,,for(i=1,n,ispseudoprime(p+3*(i+1)*i)||next(2));return(p))
Showing 1-1 of 1 results.