1.1 KiB
1.1 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f53e1000cf542c510051 | 5 | Problem 466: Distinct terms in a multiplication table | 问题466:乘法表中的不同术语 |
Description
例如,3×4乘法表如下所示:
×12341 12342 24683 36912
有8个不同的术语{1,2,3,4,6,8,9,12},因此P(3,4)= 8。
给出:P(64,64)= 1263,P(12,345)= 1998,P(32,1015)= 13826382602124302。
求P(64,1016)。
Instructions
Tests
tests:
- text: <code>euler466()</code>应该返回258381958195474750。
testString: 'assert.strictEqual(euler466(), 258381958195474750, "<code>euler466()</code> should return 258381958195474750.");'
Challenge Seed
function euler466() {
// Good luck!
return true;
}
euler466();
Solution
// solution required