Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
1.7 KiB
1.7 KiB
id, challengeType, isHidden, title, forumTopicId
id | challengeType | isHidden | title | forumTopicId |
---|---|---|---|---|
5900f3fc1000cf542c50ff0e | 5 | false | Problem 143: Investigating the Torricelli point of a triangle | 301772 |
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);
Challenge Seed
function euler143() {
// Good luck!
return true;
}
euler143();
Solution
// solution required