Black Eternal

…how abstract thy harvest rose doth fall, consigned to the flames of woe in sweet modesty…

Category Archives: Project Euler

Project Euler Problems 39 and 75

If p is the perimeter of a right angle triangle, {a, b, c}, which value, for p ≤ 1000, has the most solutions? The solution to this problem is using the following formulas for the iterative generation of new Pythagorean triples: where: This can be done easily using recursion:

Follow

Get every new post delivered to your Inbox.