freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-179-consecutive-positive-divisors.english.md
mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
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>
2020-05-27 13:19:08 +05:30

865 B

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f41f1000cf542c50ff32 5 false Problem 179: Consecutive positive divisors 301814

Description

Find the number of integers 1 < n < 107, for which n and n + 1 have the same number of positive divisors. For example, 14 has the positive divisors 1, 2, 7, 14 while 15 has 1, 3, 5, 15.

Instructions

Tests

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

Challenge Seed

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

euler179();

Solution

// solution required