Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread Nils Bruin
On Saturday, June 21, 2014 9:06:39 PM UTC-7, 张秦川 wrote: > > I use Sage 6.1.1 which I build from source code on my x86 Ubuntu14.04 > The x86 is the key here. The flint announcement mentions that this bug only affects 64 bit platforms. -- You received this message because you are subscribed to

Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread gofortu...@gmail.com
I use Sage 6.1.1 which I build from source code on my x86 Ubuntu14.04 William Stein 提到: > >On Jun 21, 2014 7:17 PM, "gofortu...@gmail.com" wrote: >> >> I didn't get such answer as you got,my Sage factor 2007193456621 correctly. >> N.factor() returns 1001797*2003593. >> Did you use an old version

Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread William Stein
On Jun 21, 2014 7:17 PM, "gofortu...@gmail.com" wrote: > > I didn't get such answer as you got,my Sage factor 2007193456621 correctly. > N.factor() returns 1001797*2003593. > Did you use an old version of Sage? > What version are *you* using? > > > 發自我的小米手機 > > John Cremona 提到: > > >I noticed an

Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-21 Thread gofortu...@gmail.com
I didn't get such answer as you got,my Sage factor 2007193456621 correctly. N.factor() returns 1001797*2003593. Did you use an old version of Sage? 發自我的小米手機 John Cremona 提到: >I noticed an announcement on the flint-dev list which led me to try >this, and indeed we have the bug: > >sage: n=20071

Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-18 Thread John Cremona
On 18 June 2014 16:49, David Roe wrote: > We are using flint: > > if mpz_fits_slong_p(n.value): > > n_factor(&f, mpz_get_ui(n.value), proof) > > where n_factor is defined in sage.libs.flint.ulong_extras. Thanks, David -- this explains what is happening (remember that I got this value

Re: [sage-devel] Bug in integer factorization (or primality test)

2014-06-18 Thread David Roe
We are using flint: if mpz_fits_slong_p(n.value): n_factor(&f, mpz_get_ui(n.value), proof) where n_factor is defined in sage.libs.flint.ulong_extras. David On Wed, Jun 18, 2014 at 4:28 AM, John Cremona wrote: > I noticed an announcement on the flint-dev list which led me to try