pythagorean triplets, counting primitives