摘要: #attachment.py from gmpy2 import lcm , powmod , invert , gcd , mpz from Crypto.Util.number import getPrime from sympy import nextprime from random imp 阅读全文
posted @ 2020-04-30 18:02 S4tan 阅读(1755) 评论(0) 推荐(0) 编辑
摘要: a = 111 b = 321 from gmpy2 import lcm , gcd gcd_res = gcd(a,b) lcm_res = lcm(a,b) #gcd_res = x1*a x1 = a/gcd_res #gcd_res = y1*b y1 = b/gcd_res #lcm_r 阅读全文
posted @ 2020-04-30 16:15 S4tan 阅读(148) 评论(0) 推荐(0) 编辑