This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A338366 #32 Sep 22 2023 02:14:14 %S A338366 1,3,7,1,11,1,7777,3,1,1,9,-1,7,33,99,1,3,1,1,9,1,11,-1,1,7,3, %T A338366 7777777777,1111,111,1,1,3,1,-1,3,33,1,3,1,77777777777777,111,3, %U A338366 1111111111111111111111111111111111111111,3,-1,1,3,1,1,999,7,1,11,1,7,-1,33,1,3,3,1,3,1 %N A338366 a(n) = smallest positive number k with all digits equal such that the concatenation k||n||k is prime, or -1 if no such k exists. %C A338366 See A090287 for more information. %C A338366 From _Robert Price_, Sep 20 2023: (Start) %C A338366 For a(366), k is a string of 8441 1's. %C A338366 The sequence then continues: 77, 1, 1, 3, 1, 1, 9, 7777777, 1, 11, 3, 1, 11, 9, 77, 11111, 1, 1, 33333, 3, 7, 9, 3, 1, 77, 1, 1, 9, 7777777777 until a(396) where k is a sequence of 269 1's. %C A338366 The sequence then continues: 9, 777, 11, 9, 1, 7, 3, 7, 1, 11, 1, 1, 9, 9, 1111, 3, 999, 77777, 99, 7, 7, 3, 7, -1, 3, 1, 11, 77, 1, 77, 3, 1, 7, 3, 3, 1, 111111, 1, 7, 99, 7, 1111, 9, 1, 1, 11, 1, 7777777, 11, 1, 1111, 3, 1111, 7, 3, 7, 11, 3, 1, 1, 111, 3, 1, 3, 3, 1, 33, 9, 11, 33, 3, 7, 3, 3, 7, 99, 1, 1, 11, 3, 1, 9, 7, 77, 9, 1, 1, 3, 1, 7777, 33, 3, 1, 33, 3, 77, 77, 9, 1, 3, 33, 11111, 9, 9. (End) %H A338366 Robert Price, <a href="/A338366/b338366.txt">Table of n, a(n) for n = 0..365</a> %H A338366 <a href="/index/Pri#piden">Index entries for primes involving decimal expansion of n</a> %e A338366 a(3) = 1 because 131 is prime. %e A338366 a(4) = 11 because 11411 is prime, and all of 141, 242, 343, ..., 949 are composite. %Y A338366 Cf. A090287. %Y A338366 Related sequences: A010785, A068695, A091088, A228323, A228325, A336893, A338712 (see also the Index link above). %K A338366 sign,base %O A338366 0,2 %A A338366 _N. J. A. Sloane_, Nov 08 2020 %E A338366 More terms from _Alois P. Heinz_, Nov 08 2020