login
Largest prime which can be formed from digits of n-th prime p(n).
1

%I #8 May 03 2018 11:38:47

%S 2,3,5,7,11,31,71,19,23,29,31,73,41,43,47,53,59,61,67,71,73,97,83,89,

%T 97,101,103,701,109,311,271,311,317,193,941,151,751,631,761,317,971,

%U 811,911,193,971,991,211,223,227,229,233,293,421,521,257,263,269,271,727

%N Largest prime which can be formed from digits of n-th prime p(n).

%H Harvey P. Dale, <a href="/A101989/b101989.txt">Table of n, a(n) for n = 1..1000</a>

%e a(6)=31 because p(6)=13 and 31 is the largest prime which can be made from digits 1,3.

%t Table[Max[Select[FromDigits/@Permutations[IntegerDigits[Prime[n]]],PrimeQ]],{n,60}] (* _Harvey P. Dale_, May 03 2018 *)

%K base,easy,nonn

%O 1,1

%A _Zak Seidov_, Jan 29 2005