login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A259146 Smallest prime with first n digits distinct. 1

%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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 22:43 EDT 2024. Contains 375519 sequences. (Running on oeis4.)