login
Largest eight-digit primes (in decreasing order) which use each of 0-to-7 decimal digits exactly once.
5

%I #5 Nov 21 2013 12:48:43

%S 76540231,76532041,76524031,76523401,76520341,76514203,76512043,

%T 76504321,76504231,76503241,76502143,76501423,76453021,76451203,

%U 76435201,76425103,76421053,76401253,76345201,76340521,76325401

%N Largest eight-digit primes (in decreasing order) which use each of 0-to-7 decimal digits exactly once.

%C There are exactly 2668 eight-digit primes using digits 0-to-7 exactly once, here the largest ones are given; cf. A109177 with the smallest ones.

%t Sort[Take[FromDigits/@Select[Permutations[Range[0,7]],First[#]!=0 && PrimeQ[ FromDigits[#]]&],-50],#1>#2&] (* _Harvey P. Dale_, Aug 16 2011 *)

%Y Cf. A109177.

%K base,nonn

%O 1,1

%A _Zak Seidov_, Jun 21 2005