public void Test_FindLargestXMinimalSolution() { /* * minimal solutions in x for D ≤ 7, the largest x is obtained when D=5. * */ var sut = new E066DiophantineEquation(); Assert.Equal(5, sut.GetDFromLargestXInMinimumSolution(DMax: 7)); }
public void Solution() { /* * Find the value of D ≤ 1000 in minimal solutions of x for which the largest value of x is obtained. */ var sut = new E066DiophantineEquation(); Assert.Equal(661, sut.GetDFromLargestXInMinimumSolution(DMax: 1000)); /* * Congratulations, the answer you gave to problem 66 is correct. * * You are the 16951st person to have solved this problem. * * This problem had a difficulty rating of 25%. The highest difficulty rating you had previously solved was 20% */ }