login
Numbers n such that A034693(n) = 2.
6

%I #16 Mar 02 2017 23:05:31

%S 3,5,8,9,11,14,15,20,21,23,26,29,33,35,39,41,44,48,50,51,53,54,56,63,

%T 65,68,69,74,75,81,83,86,89,90,95,98,99,105,111,113,114,116,119,120,

%U 125,128,131,134,135,140,141,146,153,155,158,165,168,173,174,176

%N Numbers n such that A034693(n) = 2.

%H Michael De Vlieger, <a href="/A034784/b034784.txt">Table of n, a(n) for n = 1..10000</a>

%t CompositeNext[n_]:=Module[{k=n+1},While[PrimeQ[k],k++ ];k]; lst={};Do[p=n+CompositeNext[n];If[PrimeQ[p],AppendTo[lst,n]],{n,2,6!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Jun 15 2009 *)

%t Position[#, 2] &@ Table[k = 1; While[! PrimeQ[k n + 1], k++]; k, {n, 180}] // Flatten (* _Michael De Vlieger_, Mar 02 2017 *)

%Y Cf. A034693, A034694.

%K nonn

%O 1,1

%A _Labos Elemer_

%E Edited by _N. J. A. Sloane_, Oct 27 2012