the division changes the type to a rational number. I.e. type(q) <type 'sage.rings.rational.Rational'>
and is_prime(Integer(q)) True fixes this. Not sure if that's a bug. It's certainly not obvious why this happens. -- harald -- 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 https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.