Back to Cosmos

Project Euler Problem #009: Special Pythagorean triplet

code/online_challenges/src/project_euler/problem_009/README.md

latest571 B
Original Source

Project Euler Problem #009: Special Pythagorean triplet

(Problem Link)

A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,

a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup> For example, 3<sup>2</sup> + 4<sup>2</sup> = 9 + 16 = 25 = 5<sup>2</sup>.

There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc.


<p align="center"> A massive collaborative effort by <a href="https://github.com/OpenGenus/cosmos">OpenGenus Foundation</a> </p>