OFFSET
1,1
COMMENTS
PROG
(PARI) a(n) = {my(p = 2); until (ok, ok = 1; for (k = 1, n, if (! isprime((k+1)*p^2-k), ok = 0; break; ); ); if (!ok, p = nextprime(p+1); )); return (p); } \\ Michel Marcus, Apr 19 2013
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Zak Seidov, Jun 06 2012
EXTENSIONS
a(9) from Tyler Busby, Jan 11 2023
STATUS
approved