--- title: Factors of a Mersenne number id: 598eea87e5cf4b116c3ff81a challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof check_mersenne === "function", "check_mersenne is a function.");' - text: '' testString: 'assert(typeof check_mersenne(3) == "string", "check_mersenne(3) should return a string.");' - text: '' testString: 'assert.equal(check_mersenne(3),"M3 = 2^3-1 is prime","check_mersenne(3) should return "M3 = 2^3-1 is prime".");' - text: '' testString: 'assert.equal(check_mersenne(23),"M23 = 2^23-1 is composite with factor 47","check_mersenne(23) should return "M23 = 2^23-1 is composite with factor 47".");' - text: '' testString: 'assert.equal(check_mersenne(929),"M929 = 2^929-1 is composite with factor 13007","check_mersenne(929) should return "M929 = 2^929-1 is composite with factor 13007");' ```
## Challenge Seed
```js function check_mersenne (p) { // Good luck! } ```
## Solution
```js // solution required ```