Re: [sage-support] is_prime() error

2016-04-07 Thread William Stein
On Thursday, April 7, 2016, kcrisman wrote: > >> >> >> >> I think we should change is_prime for rational numbers, since people >> >> get confused by this so much. >> >> >> >> How? Pretty much any change at all would be better than the current >> >> situation. Options I can think of: >> >> >> >>

Re: [sage-support] is_prime() error

2016-04-05 Thread Justin C. Walker
> On Apr 5, 2016, at 09:54 , Harald Schilly wrote: > > the division changes the type to a rational number. I.e. > > type(q) > > > and > > is_prime(Integer(q)) > True > > fixes this. Not sure if that's a bug. It's certainly not obvious why this > happens. I’m not sure this will help, but i

[sage-support] is_prime() error

2016-04-05 Thread cap2102
Hi everyone, I was just doing a routine check for a Chaum-van Antwerpen Signature Scheme public parameter set(p=2q+1, p,q both odd pri