Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-233-lattice-points-on-a-circle.md
gikf a9418a1fe9 fix(curriculum): clean-up Project Euler 221-240 (#42839)
* fix: clean-up Project Euler 221-240

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-15 14:26:34 +02:00

783 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4551000cf542c50ff68 Problem 233: Lattice points on a circle 5 301877 problem-233-lattice-points-on-a-circle

--description--

Let f(N) be the number of points with integer coordinates that are on a circle passing through (0,0), (N,0),$(0,N)$, and (N,N).

It can be shown that f(10000) = 36.

What is the sum of all positive integers N ≤ {10}^{11} such that f(N) = 420?

--hints--

latticePointsOnACircle() should return 271204031455541300.

assert.strictEqual(latticePointsOnACircle(), 271204031455541300);

--seed--

--seed-contents--

function latticePointsOnACircle() {

  return true;
}

latticePointsOnACircle();

--solutions--

// solution required