OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = a(n-1) + floor(sqrt(prime(n))) with a(1) = 1. - G. C. Greubel, May 06 2022
MATHEMATICA
Accumulate[Floor[Sqrt[#]]&/@Prime[Range[60]]] (* Harvey P. Dale, May 08 2013 *)
PROG
(PARI) a(n)=my(s); forprime(p=2, prime(n), s+=sqrtint(p)); s \\ Charles R Greathouse IV, Jan 06 2016
(SageMath)
def a(n): # a = A062048
if (n==1): return 1
else: return a(n-1) + floor(sqrt(nth_prime(n)))
[a(n) for n in (1..60)] # G. C. Greubel, May 06 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Dean Hickerson, Jun 30 2001
STATUS
approved