OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..20000 (first 1000 terms from Zak Seidov)
FORMULA
a(n) = n^2 log^2 n + O(n^2 log n log log n). - Charles R Greathouse IV, Mar 11 2014
EXAMPLE
a(4) = 53 as the (4^2)th prime is the 16th prime is 53. - David A. Corneth, Apr 13 2021
MATHEMATICA
Prime[Range[40]^2] (* Alonso del Arte, Feb 11 2015 *)
PROG
(Magma) [NthPrime(n^2): n in [1..100] ]; // Vincenzo Librandi, Apr 12 2011
(PARI) a(n)=prime(n^2) \\ Charles R Greathouse IV, Jul 02 2013
(PARI) first(n) = { my(res = vector(n), t = 0); forprime(p = 2, oo, t++; if(ispower(t, 2, &i), print1([i, p]", "); res[i] = p; if(i >= n, return(res)))) } \\ David A. Corneth, Apr 13 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved