num
?
NOTE: Wording was modified slightly on 24 April 2007 to emphasise the theoretical nature of Lychrel numbers.
countLychrelNumbers(1000)
should return 13.
testString: assert.strictEqual(countLychrelNumbers(1000), 13, 'countLychrelNumbers(1000)
should return 13.');
- text: countLychrelNumbers(5000)
should return 76.
testString: assert.strictEqual(countLychrelNumbers(5000), 76, 'countLychrelNumbers(5000)
should return 76.');
- text: countLychrelNumbers(10000)
should return 249.
testString: assert.strictEqual(countLychrelNumbers(10000), 249, 'countLychrelNumbers(10000)
should return 249.');
- text: Your function should count all Lychrel numbers.
testString: assert.strictEqual(countLychrelNumbers(3243), 39, 'Your function should count all Lychrel numbers.');
- text: Your function should pass all test cases.
testString: assert.strictEqual(countLychrelNumbers(7654), 140, 'Your function should pass all test cases.');
```