%I #28 Feb 13 2021 14:11:04
%S 2,13,103,1039,10243,102359,1023467,10234589,102345689,10234567897
%N Smallest prime with first n digits distinct.
%C The sequence is complete: n=1..10.
%F a(n) = A007809(n), n<=9. - _R. J. Mathar_, Jul 06 2015
%o (Python)
%o from sympy import nextprime
%o def a(n):
%o p = nextprime(10**(n-1))
%o while len(set(str(p)[:n])) < n: p = nextprime(p)
%o return p
%o for n in range(1, 11):
%o print(a(n), end=", ") # _Michael S. Branicky_, Feb 13 2021
%Y Cf. A000040, A007809, A007810, A029743.
%K nonn,base,fini,full
%O 1,1
%A _Zak Seidov_, Jun 19 2015
|