def rqf_iterator(d1, d2): from lmfdb.WebNumberField import is_fundamental_discriminant for d in srange(d1, d2 + 1): if is_fundamental_discriminant(d): yield d, '2.2.%s.1' % d