STATUS
editing
approved
editing
approved
Cf. A211396.
approved
editing
editing
approved
approved
editing
editing
approved
lps[m_]:=Max[Select[Flatten[Table[FromDigits/@Partition[ IntegerDigits[ m], n, 1], {n, IntegerLength[m]}]], PrimeQ]]; Array[lps, 100, 0]/. -\[Infinity]->0 (* Harvey P. Dale, Feb 26 2014 *)
approved
editing
editing
approved
nonn,easy,base,nice,look
approved
editing
a[n_] := (id = IntegerDigits[n]; lg = Length[id]; sel = Select[ FromDigits /@ Flatten[ Table[ id[[i ;; j]], {i, 1, lg}, {j, i, lg}], 1], PrimeQ]; If[ sel === {}, 0, Last[ Sort[ sel] ] ]); Table[ a[n], {n, 0, 99}] (* From _Jean-François Alcover, _, Feb 23 2012 *)
_Reinhard Zumkeller_, , <a href="/A047814/b047814.txt">Table of n, a(n) for n = 0..10000</a>