#Japt, 15 14 12 11 99 8 bytes 1-indexed.
Çs_i°Z èj
Try it
##Explanation Ç :Create the range [0,input) and pass each through a function s_ : Convert to a string, pass it through a function and convert back to an integer i : Prepend °Z : The prefix incremented string èj :Count the primes
##Original Solution
1 byte saved thanks to Oliver
Æ[XÄX]¬nÃèjÇsiZÄÃèj
Test itTry it
ÆÇ à :Map each :CreateX in the range [0,input) ands pass each X through a function : Convert to string [XÄX] i : Array [X+1,X] Prepend ZÄ ¬ : :Z+1 Join to a string à n:End map è : Convert to an integer:Count èjj :Count the primesPrimes