Add generator functions for Pythagorean triples and primes.

Also added test cases for them along with a new "release" build
for single cpp files.