Sha256: b70be463c97e49b6998845b9b6cfb3aa1f2f84191cb4df1df2c2483138040334
Contents?: true
Size: 275 Bytes
Versions: 139
Compression:
Stored size: 275 Bytes
Contents
A Pythagorean triplet is a set of three natural numbers, {a, b, c}, for which, ```text a**2 + b**2 = c**2 ``` For example, ```text 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
139 entries across 139 versions & 1 rubygems