A073643 Nine-digit primes with all distinct digits.
102345689, 102345697, 102345869, 102346789, 102346879, 102346897, 102346957, 102347689, 102348679, 102348769, 102349867, 102354689, 102354697, 102356489, 102356789, 102356987, 102358769, 102358967, 102364859, 102364879, 102365897
Offset: 1
Examples
a(1)=102345689 because 102345689 is the smallest 9-digit prime with all distinct digits.
Links
- Zak Seidov, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Python
from sympy import isprime from itertools import permutations as perms nines = (int("".join(p)) for p in perms("0123456789", 9) if p[0] != "0") afull = [k for k in nines if isprime(k)] print(afull[:24]) # Michael S. Branicky, Aug 04 2022
Comments