in reply to How to find largest pandigital prime number ?

For base 10, the largest pandigital number of length 10 is 9876543210. You can successively create smaller pandigital numbers from that, and test them for primeness.

Algorithm::Loops or Algorithm::Permute might help you creating the numbers.

Somhow this looks like a project euler task to me - isn't it more fun to solve them on your own?

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re: How to find largest pandigital prime number ?

Replies are listed 'Best First'.
Re^2: How to find largest pandigital prime number ?
by JavaFan (Canon) on Jul 23, 2010 at 11:59 UTC
    For base 10, the largest pandigital number of length 10 is 9876543210.
    No 10 digit pandigital number is prime (the sum of their digits is 45, so they're all divisible by 3).
    You can successively create smaller pandigital numbers from that, and test them for primeness.
    Pointless. The smallest pandigital prime is 10123457689. (Sloane A050288)