How do I write a program which give me all prime ideals with norm up to 3?

35 Views Asked by At

The program should give me all prime ideals in the ring of integers up to norm 3. So far I have:

sage: K.<a> = QuadraticField(-23) 
sage: L=K.ideals_of_bdd_norm(3)
     if L.is_prime()
        print L

but this does not work.