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”).

The fourth nonprimes after the primes.
2

%I #9 Aug 07 2023 18:41:35

%S 9,9,10,12,16,18,22,24,27,34,35,42,46,48,51,57,64,65,72,76,77,84,87,

%T 93,102,106,108,112,114,117,132,135,142,143,154,155,161,168,171,177,

%U 184,185,196,198,202,203,215,228,232,234,237,244,245,255,261,267,274

%N The fourth nonprimes after the primes.

%H Harvey P. Dale, <a href="/A175219/b175219.txt">Table of n, a(n) for n = 1..1000</a>

%t Module[{nn=1000,cmps},cmps=Partition[Select[Range[nn],CompositeQ],4,1];Table[SelectFirst[ cmps,#[[1]]>p&],{p,Prime[Range[PrimePi[cmps[[-1,1]]]]]}]][[;;,4]] (* _Harvey P. Dale_, Aug 07 2023 *)

%K nonn

%O 1,1

%A _Jaroslav Krizek_, Mar 06 2010

%E More terms from _Harvey P. Dale_, Aug 07 2023