Re: [sage-devel] discovering the code actually executed

2015-03-09 Thread Jeroen Demeyer
On 2015-03-09 13:23, John Cremona wrote: Yes (for me). It goes straight into rings.ideal which to me seems silly. If we think that no nonzero rational is prime then it could return false immediately. Note: if somebody feels like fixing this, it should be done on the level of FieldElement. --

Re: [sage-devel] discovering the code actually executed

2015-03-09 Thread John Cremona
On 9 March 2015 at 12:16, Justin C. Walker wrote: > > On Mar 9, 2015, at 05:09 , Dima Pasechnik wrote: > >> So far I was able to do this manually, but I am really stuck trying to >> figure out e.g. what happens upon calling >> >> sage: QQ(2).is_prime() >> >> I vaguely recall seeing discussions and

Re: [sage-devel] discovering the code actually executed

2015-03-09 Thread Justin C. Walker
On Mar 9, 2015, at 05:09 , Dima Pasechnik wrote: > So far I was able to do this manually, but I am really stuck trying to > figure out e.g. what happens upon calling > > sage: QQ(2).is_prime() > > I vaguely recall seeing discussions and tips how to find out the actual > codepath in such cases.

[sage-devel] discovering the code actually executed

2015-03-09 Thread Dima Pasechnik
So far I was able to do this manually, but I am really stuck trying to figure out e.g. what happens upon calling sage: QQ(2).is_prime() I vaguely recall seeing discussions and tips how to find out the actual codepath in such cases. Could someone point me out into the right direction? Thanks, Di