--- id: 5900f36f1000cf542c50fe82 challengeType: 5 title: 'Problem 3: Largest prime factor' videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert.strictEqual(largestPrimeFactor(2), 2, "largestPrimeFactor(2) should return 2.");' - text: '' testString: 'assert.strictEqual(largestPrimeFactor(3), 3, "largestPrimeFactor(3) should return 3.");' - text: '' testString: 'assert.strictEqual(largestPrimeFactor(5), 5, "largestPrimeFactor(5) should return 5.");' - text: '' testString: 'assert.strictEqual(largestPrimeFactor(7), 7, "largestPrimeFactor(7) should return 7.");' - text: '' testString: 'assert.strictEqual(largestPrimeFactor(13195), 29, "largestPrimeFactor(13195) should return 29.");' - text: '' testString: 'assert.strictEqual(largestPrimeFactor(600851475143), 6857, "largestPrimeFactor(600851475143) should return 6857.");' ```
## Challenge Seed
```js function largestPrimeFactor(number) { // Good luck! return true; } largestPrimeFactor(13195); ```
## Solution
```js // solution required ```