OFFSET
1,1
COMMENTS
Largest value below 10^7 is given by pi(110486) = 10486.
EXAMPLE
pi(64668) = 6468, pi(99551) = 9551.
MATHEMATICA
lst = {}; p=0; While[p < 10^7, n=PrimePi[ ++p]; {sp, sn}=Split/@IntegerDigits@{p, n}; If[First/@sp==First/@sn && And@@GreaterEqual@@@Transpose[Length/@#&/@{sp, sn}], AppendTo[lst, p]]]; lst
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Giovanni Resta, Jan 29 2006
STATUS
approved