Generating primitive triplets
Finding solution by triples