Open sx349 opened 4 years ago
res=1 for i in range(0,7830457): res=2 if(len(str(res))>10): res=res%10_000_000_000 print(res28433+1)
楼上什么玩意儿
p=10**10
print((28433*pow(2,7830457,p)+1)%p)
(remainder (1+(* (expt-mod 2 7830457 (expt 10 10)) 28433)) (expt 10 10))
https://pe-cn.github.io/97/
Problem 97 Large non-Mersenne prime The first known prime found to exceed one million digits was discovered in 1999, and is a Mersenne prime of the form 26972593−1; it contains exactly 2,098,960 digi