Hello, I seem to have run across a potential bug on Sage: > > p = previous_prime(2^64) >> F.<x> = GF(p^2) >> x * 2**63 >> >> > throws a "overflow in t_INT-->long assignment" exception creating the > element x * 2**63. >
This is indeed a bug. Sage calls the wrong PARI function for this conversion: it should convert to a 64-bit *unsigned* integer, but instead asks for a 64-bit *signed* integer, hence the overflow. I opened a bug report at http://trac.sagemath.org/ticket/16807; a fix is coming soon. Peter -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.