Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-418-factorisation-triples.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

1.0 KiB

id, challengeType, title, forumTopicId
id challengeType title forumTopicId
5900f50f1000cf542c510021 5 Problem 418: Factorisation triples 302087

Description

Let n be a positive integer. An integer triple (a, b, c) is called a factorisation triple of n if: 1 ≤ a ≤ b ≤ c a·b·c = n.

Define f(n) to be a + b + c for the factorisation triple (a, b, c) of n which minimises c / a. One can show that this triple is unique.

For example, f(165) = 19, f(100100) = 142 and f(20!) = 4034872.

Find f(43!).

Instructions

Tests

tests:
  - text: <code>euler418()</code> should return 1177163565297340400.
    testString: assert.strictEqual(euler418(), 1177163565297340400);

Challenge Seed

function euler418() {
  // Good luck!
  return true;
}

euler418();

Solution

// solution required