|
|
A007809
|
|
Smallest prime with n distinct digits.
|
|
12
|
|
|
|
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
|
(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):
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,fini,base,full
|
|
AUTHOR
|
N.B. Backhouse (sx52(AT)liverpool.ac.uk)
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|