login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A103598
Smallest prime p such that Sum_{primes q <= p} 1/q >= n/5.
0
2, 2, 3, 3, 5, 11, 17, 41, 97, 277, 1013, 4789, 31627, 314723, 5195977, 159490147, 10443979657
OFFSET
1,1
COMMENTS
a(18) > pi(5*10^10). - Robert Price, Dec 10 2013
MATHEMATICA
For[n = 1, n ≤ 17, n++, sum = 0; For[k = 1, k ≤ 10^6, k++, sum = sum + 1/Prime[k]; If[sum >= n/5, Print[Prime[k]]; Break[]]]]
Table[m = 1; s = 0; While[(s = s + 1/Prime[m]) < n/5, m++];
Prime[m], {n, 1, 17}] (* Robert Price, Mar 27 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(1)-a(2) and a(16)-a(17) from Robert Price, Dec 10 2013
STATUS
approved