That means when the length of bite is more than 62, Sage will change its 
type of data or the storage method..Right?


在 2018年4月16日星期一 UTC+8下午9:15:41,vdelecroix写道:
>
> On 16/04/2018 15:09, Vincent Delecroix wrote: 
> > On 16/04/2018 13:15, John Cremona wrote: 
> >> On 16 April 2018 at 12:04, Vincent Delecroix <20100.d...@gmail.com 
> <javascript:>> 
> >> wrote: 
> >> 
> >>> On 16/04/2018 09:21, fanx...@iie.ac.cn <javascript:> wrote: 
> >>> 
> >>>> I have constructed  a big prime field: 
> >>>> 
> >>>>> p=68235916425158872634653027 
> >>>>>> F=GF(p) 
> >>>>>> 
> >>>>> 
> >>> Here is what I get 
> >>> 
> >>> sage: p = 68235916425158872634653027 
> >>> sage: F = GF(p) 
> >>> Traceback (most recent call last): 
> >>> ... 
> >>> ValueError: the order of a finite field must be a prime power 
> >> 
> >> 
> >> OK, but apart from typos in the report there is a real bug: 
> >> 
> >> sage: p=next_prime(68235916425158872634653027) 
> >> sage: F=GF(p) 
> >> sage: E2=GF(p^6) 
> >> 
> >>   AttributeError: 'int' object has no attribute 'divisors' 
> > 
> > reason: type inconsistency in the output of K.degree() 
> > 
> > sage: type(GF(next_prime(2^62)^2).degree()) 
> > <type 'sage.rings.integer.Integer'> 
> > 
> > versus 
> > 
> > sage: type(GF(next_prime(2^63)^2).degree()) 
> > <type 'int'> 
>
> which is a consequence of this one 
>
> sage: R1 = PolynomialRing(Zmod(next_prime(2^62)), 'x') 
> sage: type(R1.an_element().degree()) 
> <type 'sage.rings.integer.Integer'> 
>
> versus 
>
> sage: R2 = PolynomialRing(Zmod(next_prime(2^63)), 'x') 
> sage: type(R2.an_element().degree()) 
> <type 'int'> 
>
> Vincent 
>

-- 
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.

Reply via email to