ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 19 Sep 2018 11:00:04 -0500Enumerating prime ideals in SAGEhttp://ask.sagemath.org/question/43698/enumerating-prime-ideals-in-sage/Given a number Field K and its ring of integers $O_K$, I want to enumerate prime ideals and calculate some quantities in $O_K$ modulo the prime ideals. This computation depends on the size of the ideal.
What I did earlier was taking a prime number, creating its ideal, factorizing it and using the factors as prime ideals. But this way I think I am doing very large computations because the norm would be very high.
I want to enumerate prime ideals below a certain norm in SAGE. What can I do?
Wed, 19 Sep 2018 01:20:46 -0500http://ask.sagemath.org/question/43698/enumerating-prime-ideals-in-sage/Answer by FrédéricC for <p>Given a number Field K and its ring of integers $O_K$, I want to enumerate prime ideals and calculate some quantities in $O_K$ modulo the prime ideals. This computation depends on the size of the ideal.</p>
<p>What I did earlier was taking a prime number, creating its ideal, factorizing it and using the factors as prime ideals. But this way I think I am doing very large computations because the norm would be very high.</p>
<p>I want to enumerate prime ideals below a certain norm in SAGE. What can I do?</p>
http://ask.sagemath.org/question/43698/enumerating-prime-ideals-in-sage/?answer=43703#post-id-43703Like that maybe
sage: K.<a>=QuadraticField(5)
sage: K.primes_of_bounded_norm(120)
Wed, 19 Sep 2018 11:00:04 -0500http://ask.sagemath.org/question/43698/enumerating-prime-ideals-in-sage/?answer=43703#post-id-43703