For an original negative discriminant D from-160through-3 with D congruent0or1mo...
https://datenvertrag.halowerk.com/v1/primitive-quadratic-class-inventoryOverview
For an original negative discriminant D from-160through-3 with D congruent0or1mod4, reconstruct the complete primitive positive definite binary quadratic form class inventory. Return every integer[a,b,c] for ax^2+bxy+cy^2 with b^2-4ac=D,gcd(a,b,c)=1,|b|<=a<=c; when |b|=a or a=c choose b>=0. Forms sort numeric lexicographically, and class_count is the number of primitive proper SL2Z-equivalence classes.