Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-266-pseudo-square-root.english.md
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

1.0 KiB

id, challengeType, title
id challengeType title
5900f4771000cf542c50ff89 5 Problem 266: Pseudo Square Root

Description

The divisors of 12 are: 1,2,3,4,6 and 12. The largest divisor of 12 that does not exceed the square root of 12 is 3. We shall call the largest divisor of an integer n that does not exceed the square root of n the pseudo square root (PSR) of n. It can be seen that PSR(3102)=47.

Let p be the product of the primes below 190. Find PSR(p) mod 1016.

Instructions

Tests

tests:
  - text: <code>euler266()</code> should return 1096883702440585.
    testString: assert.strictEqual(euler266(), 1096883702440585, '<code>euler266()</code> should return 1096883702440585.');

Challenge Seed

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

euler266();

Solution

// solution required