--- title: Emirp primes id: 599d0ba974141b0f508b37d5 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof emirps === "function", "emirps is a function.");' - text: '' testString: 'assert.deepEqual(emirps(20, true), [13, 17, 31, 37, 71, 73, 79, 97, 107, 113, 149, 157, 167, 179, 199, 311, 337, 347, 359, 389], "emirps(20,true) should return [13,17,31,37,71,73,79,97,107,113,149,157,167,179,199,311,337,347,359,389]");' - text: '' testString: 'assert.deepEqual(emirps(10000), 948349, "emirps(10000) should return 948349");' - text: '' testString: 'assert.deepEqual(emirps([7700, 8000], true), [7717, 7757, 7817, 7841, 7867, 7879, 7901, 7927, 7949, 7951, 7963], "emirps([7700,8000],true) should return [7717,7757,7817,7841,7867,7879,7901,7927,7949,7951,7963]");' - text: '' testString: 'assert.deepEqual(emirps([7700, 8000], false), 11, "emirps([7700,8000],true) should return 11");' ```
## Challenge Seed
```js function emirps(n) { // Good luck! } ```
## Solution
```js // solution required ```