OFFSET
1,3
COMMENTS
For single-digit terms, the condition is voidly satisfied: nothing can be inserted.
EXAMPLE
10281 is in this sequence because 1(4)0281, 10(4)281, 102(4)81, and 1028(4)1 are all prime.
PROG
(Magma) a:=[]; for k in [1..700] do s:=0; v:=Reverse(Intseq(k)); for i in [1..#v-1] do vv:=v[1..i] cat [4] cat v[i+1..#v]; p:=Seqint(Reverse(vv)); if not IsPrime(p) then break; else s:=s+1; end if; end for; if s eq #v-1 then Append(~a, k); end if; end for; [0] cat a; // Marius A. Burtea, Feb 09 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Fox, Feb 08 2020
STATUS
approved