Ask Your Question
1

Enumerating prime ideals in SAGE

asked 2018-09-19 01:20:46 -0600

mathjain gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2018-09-19 11:00:04 -0600

FrédéricC gravatar image

Like that maybe

sage: K.<a>=QuadraticField(5)
sage: K.primes_of_bounded_norm(120)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-09-19 01:20:46 -0600

Seen: 158 times

Last updated: Sep 19