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!)
A007809 Smallest prime with n distinct digits. 12
2, 13, 103, 1039, 10243, 102359, 1023467, 10234589, 102345689 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
REFERENCES
J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 1039, p.126, Ellipses, Paris 2008. [From Lekraj Beedassy, Oct 12 2008]
LINKS
PROG
(PARI) A007809(n, p=A038378(n))={until(isprime(p), while(#Set(digits(p++))<n, )); p} \\ M. F. Hasler, May 04 2017
(Python)
from sympy import nextprime
def a(n):
p = nextprime(10**(n-1))
while len(set(str(p))) < n: p = nextprime(p)
return p
for n in range(1, 10):
print(a(n), end=", ") # Michael S. Branicky, Feb 13 2021
CROSSREFS
Sequence in context: A126036 A113598 A125589 * A259146 A103513 A067024
KEYWORD
nonn,fini,base,full
AUTHOR
N.B. Backhouse (sx52(AT)liverpool.ac.uk)
EXTENSIONS
Corrected by Jud McCranie, Jan 03 2001
STATUS
approved

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 July 4 21:03 EDT 2024. Contains 374017 sequences. (Running on oeis4.)