Projecteuler.net – Problem 9 – C solution

http://projecteuler.net/problem=9

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

a2b2c2

For example, 32 + 42 = 9 + 16 = 25 = 52.

There exists exactly one Pythagorean triplet for which abc = 1000.
Find the product abc.

I used Euclid’s formula for generating Pythagorean triplets.

– Josh

This entry was posted in C, Project Euler. Bookmark the permalink.

Leave a Reply