Sha256: 881311a3abf47d8d9b88dfb95a0888ee280d9f14bf4e1eae539517f683b0e7fd

Contents?: true

Size: 866 Bytes

Versions: 63

Compression:

Stored size: 866 Bytes

Contents

# Pythagorean Triplet

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.

## Running the tests

To run the tests, run the command `busted` from within the exercise directory.

## Further information

For more detailed information about the Lua track, including how to get help if
you're having trouble, please visit the exercism.io [Lua language page](http://exercism.io/languages/lua/about).

## Source

Problem 9 at Project Euler [http://projecteuler.net/problem=9](http://projecteuler.net/problem=9)

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.158 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.157 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.156 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.155 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.154 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.153 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.152 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.151 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.150 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.149 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.148 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.147 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.146 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.145 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.144 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.143 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.142 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.141 tracks/lua/exercises/pythagorean-triplet/README.md
trackler-2.2.1.140 tracks/lua/exercises/pythagorean-triplet/README.md