... , c 2 ) their composition (a 3 , b 3 , c 3 ) can be calculated by Algorithm 5.4.7 in Cohen's book[3]; • The form (a 3 , b 3 , c 3 ) is primitive and has discriminant d K but it is not necessarily reduced. The reduction Algorithm 5.4.2 of[3] applied to (a 3 , b 3 , c 3 ) outputs a primitive reduced quadratic form (a, b, c) with discriminant d K ; • We denote the multiplication of quadratic forms by •, i.e.(a, b, c) = (a 1 , b 1 , c 1 ) • (a 2 , b 2 , c 2 ).The neutral element I is represented by the triple(1, 0, −d K /4) if d K = 0 mod 4 and it is represented by (1, 1, (1 − d K )/4) if d K = 1 mod 4. The Algorithm of[26] determines whether an element of the ideal class group of the number field K = Q( √ −d) has an order of at least a value MinClass.Algorithm ([26]) Input: A primitive reduced quadratic form (a, b, c) of discriminant d K .Output: "true" if the order of the corresponding element of the ideal class group is at least MinClass; and "false" otherwise.1) Set t = I. 2) for i from 1 to MinClass -1 do Set t = t • (a, b, c). ...