how to calculate a^(b^c) mod n? [duplicate]

时光毁灭记忆、已成空白 提交于 2021-02-08 04:37:27

问题


Can someone tell me the efficient way to solve this problem ?

abc mod m

a, b, c, and m are 32 bit int

where m is not a prime number and a is not coprime to m?I've looking for the answer, but haven't found it There are some answered questions that familiar with this question, but none of them can explain my problem. Remember if

abc mod m != abc mod m

来源:https://stackoverflow.com/questions/26891957/how-to-calculate-abc-mod-n

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!