freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/project-euler/problem-41-pandigital-prime...

57 lines
750 B
Markdown
Raw Normal View History

---
id: 5900f3951000cf542c50fea8
challengeType: 5
title: 'Problem 41: Pandigital prime'
videoUrl: ''
localeTitle: ''
---
## Description
undefined
## Instructions
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: ''
testString: 'assert(pandigitalPrime(4) == 4231, "<code>pandigitalPrime(4)</code> should return 4231.");'
- text: ''
testString: 'assert(pandigitalPrime(7) == 7652413, "<code>pandigitalPrime(7)</code> should return 7652413.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function pandigitalPrime(n) {
// Good luck!
return n;
}
pandigitalPrime(7);
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>