Ask Your Question

large prime field

asked 2017-06-06 02:25:56 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

p = 46891012152021222527303233355051

I am working on extension of P that is (p^2) , i have written algorithm in sagemath, when i execute my code it gives error

OverflowError: Python int too large to convert to C long is there any solution to solve above problem so that my algorithm will run smoothely.


edit retag flag offensive close merge delete


You should give us the more precise computations you are trying to do, since it is hard to understand where your problem comes from.

B r u n o gravatar imageB r u n o ( 2017-06-06 04:33:37 -0500 )edit

Since another person is asking the same question, I do not see any problem with this computation (from at least SageMath 7.6).

sage: p = 46891012152021222527303233355051
sage: K = GF(p^2)
sage: K
Finite Field in z2 of size 46891012152021222527303233355051^2
B r u n o gravatar imageB r u n o ( 2017-06-19 02:01:11 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-18 15:26:52 -0500

Hi. I have the same problem so if someone have the solution, I will just say "thank you". :)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-06-06 02:25:56 -0500

Seen: 67 times

Last updated: Jun 06 '17