OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = prime(n^2+n+1). - Wesley Ivan Hurt, Nov 28 2021
EXAMPLE
a(2) = 17 = P(2^2+2+1) = P(7).
MAPLE
seq(ithprime(k^2+k+1), k=0..60);
MATHEMATICA
Table[Prime[k^2+k+1], {k, 0, 50}] (* Harvey P. Dale, Apr 01 2013 *)
PROG
(Magma) [NthPrime(n^2+n+1): n in [0..60]]; // G. C. Greubel, Oct 29 2024
(SageMath) [nth_prime(n^2+n+1) for n in range(61)] # G. C. Greubel, Oct 29 2024
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Miklos Kristof, Sep 21 2006
STATUS
approved