PE-CN / pe-cn-comments

2 stars 0 forks source link

Problem 97 | Project Euler | #99

Open sx349 opened 4 years ago

sx349 commented 4 years ago

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

TerenceG-cn commented 3 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)

shangkelingxiang commented 2 years ago

楼上什么玩意儿

p=10**10
print((28433*pow(2,7830457,p)+1)%p)
yuandi42 commented 5 months ago
(remainder (1+(* (expt-mod 2 7830457 (expt 10 10)) 28433)) (expt 10 10))