Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
1

Enumerating prime ideals in SAGE

asked 6 years ago

mathjain gravatar image

Given a number Field K and its ring of integers OK, I want to enumerate prime ideals and calculate some quantities in OK 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?

Preview: (hide)

Comments

1 Answer

Sort by » oldest newest most voted
1

answered 6 years ago

FrédéricC gravatar image

Like that maybe

sage: K.<a>=QuadraticField(5)
sage: K.primes_of_bounded_norm(120)
Preview: (hide)
link

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: 6 years ago

Seen: 562 times

Last updated: Sep 19 '18