Sha256: c55a0221d207b5a30a8b320537ce3bc8cdae8f78ffbccbdee3b6bc31e3dfeaf7
Contents?: true
Size: 268 Bytes
Versions: 77
Compression:
Stored size: 268 Bytes
Contents
A Pythagorean triplet is a set of three natural numbers, {a, b, c}, for which, ``` a**2 + b**2 = c**2 ``` For example, ``` 3**2 + 4**2 = 9 + 16 = 25 = 5**2. ``` There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product a * b * c.
Version data entries
77 entries across 77 versions & 1 rubygems