#17538: Add is_prime() to RingElement
---------------------------------------+------------------------
       Reporter:  jdemeyer             |        Owner:
           Type:  defect               |       Status:  new
       Priority:  major                |    Milestone:  sage-6.5
      Component:  commutative algebra  |   Resolution:
       Keywords:                       |    Merged in:
        Authors:                       |    Reviewers:
Report Upstream:  N/A                  |  Work issues:
         Branch:                       |       Commit:
   Dependencies:                       |     Stopgaps:
---------------------------------------+------------------------
Changes (by kcrisman):

 * cc: kcrisman (added)


Comment:

 How easy is this to implement - is it just a matter of creating a
 principal ideal and checking if the ideal is prime, or do some rings need
 more than that?
 {{{
 sage: GaussianIntegers = NumberField(x^2+1, 'I').ring_of_integers()
 sage: A = GaussianIntegers([2,1])
 sage: B = GaussianIntegers.ideal(A)
 sage: B.is_prime()
 True
 }}}
 Hmm.  But maybe it isn't always this easy.

 (Note: this is largely motivated by #7545.)

--
Ticket URL: <http://trac.sagemath.org/ticket/17538#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to