triples: find primitive Pythagorean triples

This simple C program finds primitive Pythagorean triples.

Download

Compile

  1. Download one of the archive files.
  2. Unpack the archive file. For example:
    • To unpack triples.tar.gz: tar -xzf triples.tar.gz
    • To unpack triples.zip: unzip -q triples.zip
  3. Go to the triples directory. For example: cd triples
  4. Compile and link the executable file. For example:
    • With make: make
    • Without make: gcc -o triples triples.c -lm