OFFSET
1,1
LINKS
Karl-Heinz Hofmann, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(2) = 3 + 5^2 = 28; a(3) = 5 + 7^2 = 54.
MATHEMATICA
nterms=100; Table[Prime[n]+Prime[n+1]^2, {n, nterms}] (* Paolo Xausa, Nov 24 2021 *)
PROG
(Python) from sympy import sieve;
for n in range(1, 10001): print(sieve[n] + sieve[n+1]**2)
(PARI) a(n) = prime(n) + prime(n+1)^2; \\ Michel Marcus, Nov 24 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Karl-Heinz Hofmann, Nov 24 2021
STATUS
approved