WUSTCTF2020 大数计算

42 =(-80538738812075974)³+ 80435758145817515³+ 12602123297335631³ 生命、宇宙、万物的终极答案是42

from sympy import *
x = symbols('x')
print(integrate(2*x, (x, 0, 22)))
sum = 1
for i in range(1,2021):
    sum = sum*i
print hex(int(str(sum)[:8],10))[2:]
print hex(int(str(520**1314+2333**666)[:8],10))[2:]
print hex(int(str(12602123297335631 +80435758145817515 +80538738812075974)[:8],10))[2:]
print hex((484+36)*1314)[2:]

你可能感兴趣的:(Crypto)