login
A122566
Primes with index k^2+k+1.
0
2, 5, 17, 41, 73, 127, 191, 269, 367, 467, 607, 751, 919, 1093, 1297, 1523, 1753, 2027, 2309, 2621, 2909, 3299, 3623, 4007, 4421, 4861, 5303, 5749, 6257, 6763, 7307, 7867, 8447, 9041, 9643, 10273, 10979, 11719, 12421, 13121, 13883, 14723, 15467, 16319
OFFSET
0,1
LINKS
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
Cf. A000040.
Sequence in context: A099207 A320102 A197918 * A263638 A118500 A323427
KEYWORD
nonn,changed
AUTHOR
Miklos Kristof, Sep 21 2006
STATUS
approved