OFFSET
1,1
COMMENTS
If we replace 2*n - 1 with 2*n in the definition, all such numerical candidates become composite and divisible by 11.
EXAMPLE
a(1) = 101, because it contains one 0 that is flanked by two 1s, which are different from 0, and no smaller prime has this property.
PROG
(Python)
from sympy import isprime
def a(n): return next((t for c in "123456789" for d in "0123456789" if c!=d and isprime(t:=int(c+d*(2*n-1)+c))), -1)
print([a(n) for n in range(1, 17)]) # Michael S. Branicky, Jun 19 2025
CROSSREFS
KEYWORD
sign,base
AUTHOR
Jean-Marc Rebert, Jun 19 2025
STATUS
approved
