1.1 KiB
1.1 KiB
id | challengeType | title | forumTopicId |
---|---|---|---|
5900f4d41000cf542c50ffe7 | 5 | Problem 360: Scary Sphere | 302021 |
Description
Let C(r) be a sphere with radius r and center in the origin O(0,0,0). Let I(r) be the set of all points with integer coordinates on the surface of C(r). Let S(r) be the sum of the Manhattan distances of all elements of I(r) to the origin O.
E.g. S(45)=34518.
Find S(1010).
Instructions
Tests
tests:
- text: <code>euler360()</code> should return 878825614395267100.
testString: assert.strictEqual(euler360(), 878825614395267100);
Challenge Seed
function euler360() {
return true;
}
euler360();
Solution
// solution required