OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A104103(n)^2.
MATHEMATICA
Table[Ceiling[Prime[n]^(1/2)]^2, {n, 100}]
PROG
(Haskell)
a145445 n = a145445_list !! (n-1)
a145445_list = f a000040_list $ drop 2 a000290_list where
f ps'@ (p:ps) xs'@(x:xs) = if p < x then x : f ps xs' else f ps' xs
-- Reinhard Zumkeller, Jul 25 2014
(Python)
from sympy import prime, integer_nthroot
def a(n): return (integer_nthroot(prime(n), 2)[0]+1)**2
print([a(n) for n in range(1, 59)]) # Michael S. Branicky, Apr 04 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 10 2008
STATUS
approved