OFFSET
1,1
COMMENTS
There are exactly 16 five-digit primes using the decimal digits 0 through 4 exactly once. There are exactly 2668 eight-digit primes using the digits 0 through 7 exactly once: A109177 (smallest ones), A109178 (largest ones).
This is a subsequence of A187796 = A109176 union A109177, which comprises all primes of that form (in decimal notation). - M. F. Hasler, Jan 06 2013
MATHEMATICA
Select[FromDigits/@Permutations[{0, 1, 2, 3, 4}], #>10^4&&PrimeQ[#]&] (* James C. McMahon, Mar 06 2024 *)
CROSSREFS
KEYWORD
base,fini,full,nonn
AUTHOR
Zak Seidov, Jun 21 2005
STATUS
approved