Calculating the class number h(-d) for imaginary quadratic fields Q(√d)

h(-d) is listed for all squarefree d in the range m ≤ d ≤ n, where n < 106.
We count equivalently h(-D) for positive definite binary quadratic forms of negative discriminant -D, where

(See Henri Cohen's Algorithm 5.3.5, p. 228, A course in computational number theory, First Edition.)

Enter m (1 ≤ m < 106 ):
Enter n (1 ≤ m ≤ n < 106 ):

Last modified 18th January 2011
Return to main page