OFFSET
1,1
EXAMPLE
The 47th prime is 211, omitting the central digit yields 21, which is composite. The 59th prime is 277, omitting the central digit yields 27, which is composite.
MATHEMATICA
Select[Range[5, 1500], OddQ[Length[IntegerDigits[Prime[ # ]]]] && Not[PrimeQ[FromDigits[Drop[IntegerDigits[Prime[ # ]], {(Length[IntegerDigits[Prime[ # ]]] + 1)/2}]]]] &]
ondQ[n_]:=Module[{idn=IntegerDigits[Prime[n]], len}, len=Length[idn]; OddQ[ len] &&CompositeQ[FromDigits[Drop[idn, {(len+1)/2}]]]]; Select[Range[200], ondQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 02 2018 *)
CROSSREFS
KEYWORD
base,nonn,less
AUTHOR
Zak Seidov, Jun 22 2003
EXTENSIONS
Edited by Stefan Steinerberger, Sep 05 2007
STATUS
approved