A099666 a[n] is the largest prime before A002280[n] repdigits.
5, 61, 661, 6661, 66653, 666649, 6666617, 66666653, 666666653, 6666666661, 66666666643, 666666666619, 6666666666629, 66666666666647, 666666666666647, 6666666666666571, 66666666666666601, 666666666666666661
Offset: 1
Examples
n=2: 61 is before 66.
Programs
-
Mathematica
<