On Feb 8, 2008 11:15 AM, Kate <[EMAIL PROTECTED]> wrote: > > The function > > random_prime(n) > > returns differing types of objects. When n is 2, it returns a Sage > integer. When n is > 2, it returns a Python integer. A look at the > source code gives the impression that it should return a Sage > integer. > > Perhaps devel/sage-main/sage/rings/arith.py line 907 should be > changed from > return p > to > return integer_ring.ZZ(p)
Thanks. This is now http://trac.sagemath.org/sage_trac/ticket/2128 --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---