cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A103598 Smallest prime p such that Sum_{primes q <= p} 1/q >= n/5.

This page as a plain text file.
%I A103598 #17 Mar 27 2019 19:12:12
%S A103598 2,2,3,3,5,11,17,41,97,277,1013,4789,31627,314723,5195977,159490147,
%T A103598 10443979657
%N A103598 Smallest prime p such that Sum_{primes q <= p} 1/q >= n/5.
%C A103598 a(18) > pi(5*10^10). - _Robert Price_, Dec 10 2013
%t A103598 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[]]]]
%t A103598 Table[m = 1; s = 0; While[(s = s + 1/Prime[m]) < n/5, m++];
%t A103598 Prime[m], {n, 1, 17}] (* _Robert Price_, Mar 27 2019 *)
%Y A103598 Cf. A016088, A046024, A103591-A103600.
%K A103598 nonn
%O A103598 1,1
%A A103598 _James R. Buddenhagen_, Mar 28 2005
%E A103598 a(1)-a(2) and a(16)-a(17) from _Robert Price_, Dec 10 2013