1.7 KiB
1.7 KiB
id | challengeType | title |
---|---|---|
5900f3fc1000cf542c50ff0e | 5 | Problem 143: Investigating the Torricelli point of a triangle |
Description
If the sum is minimised and a, b, c, p, q and r are all positive integers we shall call triangle ABC a Torricelli triangle. For example, a = 399, b = 455, c = 511 is an example of a Torricelli triangle, with p + q + r = 784. Find the sum of all distinct values of p + q + r ≤ 120000 for Torricelli triangles.
Instructions
Tests
tests:
- text: <code>euler143()</code> should return 30758397.
testString: assert.strictEqual(euler143(), 30758397, '<code>euler143()</code> should return 30758397.');
Challenge Seed
function euler143() {
// Good luck!
return true;
}
euler143();
Solution
// solution required