Smallest number m such that (n+1)*10^m-1 (i.e., n with m nines appended) yields a prime, or -1 if this will always yield a composite number.

A090465

Smallest number m such that (n+1)*10^m-1 (i.e., n with m nines appended) yields a prime, or -1 if this will always yield a composite number.

Terms

    a(0) =1a(1) =0a(2) =0a(3) =2a(4) =0a(5) =-1a(6) =0a(7) =1a(8) =-1a(9) =1a(10) =0a(11) =-1a(12) =0a(13) =1a(14) =-1a(15) =2a(16) =0a(17) =-1a(18) =0a(19) =2a(20) =-1a(21) =1a(22) =0a(23) =-1a(24) =3a(25) =1a(26) =-1a(27) =4a(28) =0a(29) =-1

External references