OFFSET
1,1
MATHEMATICA
(*first do *) Needs["DiscreteMath`Combinatorica`"] (* then *) t = KSubsets[ Prime[ Range[25]], 3]; lst = {}; Do[k = 1; u = Permutations[ t[[n]]]; While[k < 7, v = FromDigits[ Flatten[IntegerDigits /@ u[[k]]]]; If[ PrimeQ[v], AppendTo[lst, v]]; k++ ], {n, Binomial[25, 3]}]; Take[ Union[lst], 42]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Dec 03 2004
EXTENSIONS
Edited by Charles R Greathouse IV, Apr 29 2010
STATUS
approved