OFFSET
1,2
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = sqrt(A246934(n)).
MATHEMATICA
ns[n_]:=Module[{s=Sqrt[n], a, b}, a=Floor[s]; b=Ceiling[s]; If[n-a^2<= b^2- n, a, b]]; ns/@Prime[Range[80]]
Sqrt[#]&/@With[{s=Range[20]^2}, Table[Nearest[s, p], {p, Prime[ Range[ PrimePi[ Max[s]]]]-1}]]//Flatten (* Harvey P. Dale, May 14 2020 *)
PROG
(PARI) {forprime (p = 2, 400, a = sqrtint (p); b = (a + 1)^2; a = a^2;
s = if (b - p > p - a, a, b); print1 (sqrtint (s) ", "))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 03 2014
STATUS
approved