OFFSET
1,1
COMMENTS
"Inserted" includes the possibility of appending the digit or prefixing it if nonzero.
A subsequence of A182175.
There are only two terms, a(1)=411203 and a(2)=411205, below 10^6, and six more terms below 10^7, but many 8-digit terms.
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..124
EXAMPLE
PROG
(PARI) is(n)={is_A182175(n)||return; n=digits(n); !for(D=0, 9, isprime(n[#n]+D)&&next; D&&isprime(n[1]+D)&&next; for(i=3-!D, #n-1, isprime(n[i-1]+D)&&isprime(n[i]+D)&&next(2)); return)} \\ A digit D=0 may not be prefixed but may be inserted after the first digit (which is irrelevant for digits > 0).
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Oct 27 2014
EXTENSIONS
Data and b-file corrected thanks to a remark by Hans Havermann, M. F. Hasler, Oct 29 2014
STATUS
approved