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!)
A073643 Nine-digit primes with all distinct digits. 6

%I #16 Aug 04 2022 15:04:16

%S 102345689,102345697,102345869,102346789,102346879,102346897,

%T 102346957,102347689,102348679,102348769,102349867,102354689,

%U 102354697,102356489,102356789,102356987,102358769,102358967,102364859,102364879,102365897

%N Nine-digit primes with all distinct digits.

%C The number of distinct-digit primes are finite. E.g. there are exactly 145227 such nine-digit primes from 102345689 to 987654103.

%C All terms have exactly one "0" because nine-digit zero-less numbers with all distinct digits are divisible by 9. - _Zak Seidov_, Mar 15 2015

%H Zak Seidov, <a href="/A073643/b073643.txt">Table of n, a(n) for n = 1..10000</a>

%e a(1)=102345689 because 102345689 is the smallest 9-digit prime with all distinct digits.

%o (Python)

%o from sympy import isprime

%o from itertools import permutations as perms

%o nines = (int("".join(p)) for p in perms("0123456789", 9) if p[0] != "0")

%o afull = [k for k in nines if isprime(k)]

%o print(afull[:24]) # _Michael S. Branicky_, Aug 04 2022

%Y For 3-digit distinct-digit primes, see A074675, A074676.

%Y 4-digit distinct-digit primes are in A074673, see also A074674.

%Y 5-digit distinct-digit primes are in A074671, see also A074672.

%Y 6-digit distinct-digit primes are in A074669, see also A074670.

%Y 7-digit distinct-digit primes are in A074667, see also A074668.

%Y 8-digit distinct-digit primes are in A074665, see also A074666.

%K fini,nonn,base

%O 1,1

%A _Zak Seidov_, Aug 29 2002

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 March 29 09:59 EDT 2024. Contains 371268 sequences. (Running on oeis4.)