OFFSET
1,2
COMMENTS
Last term is 739397 (confirmed by David W. Wilson).
MATHEMATICA
prQ[n_] := n == 1 || PrimeQ[n];
okQ[n_] := Module[{dd, nd}, dd = IntegerDigits[n]; nd = Length[dd]; AllTrue[Range[nd], prQ@ FromDigits@ Take[dd, #]&] && AllTrue[Range[nd-1], prQ@ FromDigits@ Drop[dd, #]&]];
{1}~Join~Select[Prime@Range[60000], okQ] (* Jean-François Alcover, Nov 20 2019 *)
CROSSREFS
KEYWORD
nonn,fini,full,nice,base
AUTHOR
Larry Calmer (larry(AT)wri.com), Simon Plouffe
STATUS
approved