代码之家  ›  专栏  ›  技术社区  ›  Chiwan Park

Python:如何使用Python计算大数?

  •  0
  • Chiwan Park  · 技术社区  · 3 年前

    我正在尝试用Python进行Paillier加密。 我想计算一个大数字列表,比如

    gr[0] = 899778^99*852993^899777
    

    但当我试图运行代码时,程序立即停止。我猜是因为数字太大了。

    我有什么办法可以修吗?当我用Matlab通过符号函数编程时,它工作得很好。

    所有变量都定义得很好。
    enter image description here

    我想做的这个等式。
    enter image description here

    这是我编写的代码。
    enter image description here

    0 回复  |  直到 3 年前