freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-118-pandigital-prim...

812 B

id title challengeType forumTopicId dashedName
5900f3e21000cf542c50fef5 Problem 118: Pandigital prime sets 5 301744 problem-118-pandigital-prime-sets

--description--

Using all of the digits 1 through 9 and concatenating them freely to form decimal integers, different sets can be formed. Interestingly with the set \\{2, 5, 47, 89, 631\\}, all of the elements belonging to it are prime.

How many distinct sets containing each of the digits one through nine exactly once contain only prime elements?

--hints--

pandigitalPrimeSets() should return 44680.

assert.strictEqual(pandigitalPrimeSets(), 44680);

--seed--

--seed-contents--

function pandigitalPrimeSets() {

  return true;
}

pandigitalPrimeSets();

--solutions--

// solution required