Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-233-lattice-points-on-a-circle.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

936 B
Raw Blame History

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

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 N1011 such that f(N)=420?

Instructions

Tests

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

Challenge Seed

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

euler233();

Solution

// solution required