FLINT3.7.0-dev

ecpp_disc_table

Synopsis#include <flint/ecpp.h>
slong ecpp_disc_table(ecpp_disc_struct ** table, const ulong * primes, slong nprimes, slong Dmax, slong hmax, slong omax, double costmax)source

Sets *table (allocated with flint_malloc) to the fundamental discriminants -D_{\max} \le D < 0 of class number at most hmax, odd part of the class number at most omax and cost at most costmax, whose odd prime factors are among the nprimes odd primes in primes, and returns their number. They are sorted by number of units, odd part of the class number, cost and |D|. The class numbers are computed with a cache-blocked sieve over reduced forms.

Cite this page

The FLINT team, “ecpp_disc_table (ecpp.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ecpp/ecpp_disc_table.html (generated 2026-10-20).