project-euler

Pandigital prime

Problem Description

We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital and is also prime.

What is the largest n-digit pandigital prime that exists?

Performance

Try it online!

Real time: 0.714 s
User time: 0.511 s
Sys. time: 0.150 s
CPU share: 92.51 %
Exit code: 0