less dumb version of pythag triples PE