Ask Your Question
1

Enumerating prime ideals in SAGE

asked 2018-09-19 08:20:46 +0100

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

Comments

1 Answer

Sort by » oldest newest most voted
1

answered 2018-09-19 18:00:04 +0100

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 08:20:46 +0100

Seen: 538 times

Last updated: Sep 19 '18