g = 14 A = 33887 N = 33889 33887 = 2^ 0 + 2^ 1 + 2^ 2 + 2^ 3 + 2^ 4 + 2^ 6 + 2^ 10 + 2^ 15 14 ^ 33887 = ( 14 ^2^ 0 ) x ( 14 ^2^ 1 ) x ( 14 ^2^ 2 ) x ( 14 ^2^ 3 ) x ( 14 ^2^ 4 ) x ( 14 ^2^ 6 ) x ( 14 ^2^ 10 ) x ( 14 ^2^ 15 ) 14 ^ 33887 = 14 x 196 x 4527 x 24773 x 5628 x 10991 x 32957 x 12615 (mod 33889 ) Ans 14 ^ 33887 = 7262 ( mod 33889 ) g = 14 A = 33887 N = 33889 33887 = 2^ 0 + 2^ 1 + 2^ 2 + 2^ 3 + 2^ 4 + 2^ 6 + 2^ 10 + 2^ 15 14 ^ 33887 = ( 14 ^2^ 0 ) x ( 14 ^2^ 1 ) x ( 14 ^2^ 2 ) x ( 14 ^2^ 3 ) x ( 14 ^2^ 4 ) x ( 14 ^2^ 6 ) x ( 14 ^2^ 10 ) x ( 14 ^2^ 15 ) 14 ^ 33887 = 14 x 196 x 4527 x 24773 x 5628 x 10991 x 32957 x 12615 (mod 33889 ) Ans 14 ^ 33887 = 7262 ( mod 33889 ) |
2 18446744073709551616 30664484332602210769 38765866666381055393 13078627891682156039 10114606423200458779 71176776724138243818 34745613330462426253 47602120380226781882 70469453233933238243 93824015611291273246 30757741903835186386 2 18446744073709551616 30664484332602210769 38765866666381055393 13078627891682156039 10114606423200458779 71176776724138243818 34745613330462426253 47602120380226781882 70469453233933238243 93824015611291273246 30757741903835186386 |
Traceback (click to the left of this block for traceback) ... RuntimeError: Segmentation fault Traceback (most recent call last): print (2^(2^ 49))%100000000000000000039
File "", line 1, in <module>
File "/tmp/tmpb3m7jV/___code___.py", line 3, in <module>
print (_sage_const_2 **(_sage_const_2 ** _sage_const_35 ))%_sage_const_100000000000000000039
File "integer.pyx", line 1846, in sage.rings.integer.Integer.__pow__ (sage/rings/integer.c:13194)
RuntimeError: Segmentation fault
|
Traceback (click to the left of this block for traceback) ... RuntimeError: exponent must be at most 9223372036854775807 Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_29.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("KDJeMl42NiklMTAwMDAwMDAwMDAwMDAwMDAwMDM5"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpECfKXt/___code___.py", line 3, in <module>
exec compile(u'(_sage_const_2 **_sage_const_2 **_sage_const_66 )%_sage_const_100000000000000000039
File "", line 1, in <module>
File "integer.pyx", line 1839, in sage.rings.integer.Integer.__pow__ (sage/rings/integer.c:13120)
RuntimeError: exponent must be at most 9223372036854775807
|
|
|