OFFSET
1,2
MATHEMATICA
Select[Range[200], ! PrimeQ[#] && IntegerDigits[#][[1]] == 1 &] (* T. D. Noe, Feb 13 2012 *)
PROG
(Python)
from sympy import primepi
def A206286(n):
def f(x): return n-1+x+((m:=10**(l:=len(str(x))-1))-(k:=min((m<<1)-1, x))-primepi(m-1)+primepi(k))-sum((m:=10**i)+primepi(m-1)-primepi((m<<1)-1) for i in range(l))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Dec 10 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Feb 12 2012
STATUS
approved