login
Smallest k such that there are n composite numbers greater than n and smaller than k.
1

%I #4 Dec 05 2013 19:55:49

%S 5,7,9,11,13,16,17,21,23,26,27,29,31,34,36,39,40,43,45,47,50,52,53,56,

%T 58,61,64,66,67,70,71,75,77,79,82,85,86,88,91,93,94,96,97,100,103,106,

%U 107,111,113,116,118,120,121,123,125,127,130,133,134,136,137,141,143

%N Smallest k such that there are n composite numbers greater than n and smaller than k.

%o (PARI) for(n=1,100,k=n:c=0:while(c<n,k=k+1: if(!isprime(k),c=c+1)):print1(k+1","))

%Y Cf. A077152.

%K nonn

%O 1,1

%A _Amarnath Murthy_, Oct 31 2002

%E More terms from _Ralf Stephan_, Mar 20 2003