OFFSET
0,2
COMMENTS
The corresponding primes prime(a(n)) are in A016088.
Index m for which the prime harmonic number p[ m ] := Sum[ 1/Prime[ k ],{k,1,m} ] >= n.
LINKS
E. Bach, D. Klyve, and J. P. Sorenson, Computing prime harmonic sums, Math. Comp. 78 (2009) 2283-2305.
Eric Weisstein's World of Mathematics, Prime Number.
Eric Weisstein's World of Mathematics, Harmonic Series of Primes.
FORMULA
From Jonathan Sondow, Apr 17 2013: (Start)
a(n) = e^(e^(n + O(1))), see comment in A223037. [corrected by Charles R Greathouse IV, Aug 22 2013] (End)
a(n) = A103591(2*n). - Michel Marcus, Aug 22 2013
MATHEMATICA
Table[m = 1; s = 0; While[(s = s + 1/Prime[m]) <= n, m++];
m, {n, 0, 4}] (* Robert Price, Mar 27 2019 *)
PROG
(PARI) a(n)=my(t); forprime(p=2, , t+=1./p; if(t>n, return(primepi(p)))) \\ Charles R Greathouse IV, Apr 29 2015
CROSSREFS
KEYWORD
nonn,more,nice,changed
AUTHOR
EXTENSIONS
a(4) found by Tomás Oliveira e Silva (tos(AT)det.ua.pt), using the fourth term of A016088. - Dec 14 2005
a(0) from Jonathan Sondow, Apr 16 2013
STATUS
approved