OFFSET
1,1
COMMENTS
a(9) = 5 is saying that there are 9 primes between 9 and 45, but actually there are 10: 11, 13, 17, 19, 23, 29, 31, 37, 41, 43. - Michel Marcus, Nov 20 2017
EXAMPLE
a(11) = 5 as there are 11 primes (13,17,19,23,29,31,37,41,43,47,53) between 11 and 55.
PROG
(PARI) a(n) = {k=2; while(sum(i=n+1, k*n-1, isprime(i)) < n, k++); k; } \\ Michel Marcus, Nov 22 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jan 03 2004
EXTENSIONS
More terms from John W. Layman, Jan 20 2004
Name clarified by Alois P. Heinz, Nov 22 2017
Corrected by Michel Marcus, Nov 23 2017
STATUS
approved