A160402 Primes made up of all distinct digits except 0 and 1.
23456789, 23458679, 23459687, 23465789, 23465987, 23469587, 23475869, 23478569, 23489657, 23495867, 23496587, 23498567, 23546879, 23546987, 23548697, 23564897, 23564987, 23567849, 23569487, 23576489, 23584679, 23587649, 23589647, 23594687
Offset: 1
Links
- Nathaniel Johnston, Table of n, a(n) for n = 1..3098 (full sequence)
Programs
-
Magma
[n: n in [1..100000000] | Seqint(Sort(&cat[(Intseq(k)): k in Divisors(n)])) eq 987654321] // Jaroslav Krizek, Jun 19 2014
-
Maple
A160402:={}: p:=23456789: while p<=98765432 do d:=convert(p,base,10): ddig:=true: for k from 0 to 9 do if((k<=1 and numboccur(k,d)>0) or (k>=2 and numboccur(k,d)<>1))then ddig:=false:break: fi: od: if(ddig)then A160402:=A160402 union {p}: fi: p:=nextprime(p): od: op(sort(convert(A160402,list))); # Nathaniel Johnston, Jun 24 2011
Extensions
Keywords "base,fini" added by R. J. Mathar, May 14 2009
Comments