Removed line numbers in figures

This commit is contained in:
2023-06-12 11:53:44 +02:00
parent 9ba0bc2ef3
commit 3df7ccbfe4
10 changed files with 82 additions and 61 deletions

20
bounds/bounds.py Normal file
View File

@@ -0,0 +1,20 @@
n = 254
c = 3
b = 256
a = 253
def calc(qo, qh, qg):
x = ((2 ** qg + 3) ** 2 + 1) / 2 ** (n - 1 - c) - (2 * (2 ** qo + 1)) / 2 ** b - (2 ** qo * 2 ** qh + 2 ** qo) / 2 ** a
return x
best = (512, 512, 512)
for qo in range(1, 128):
print(qo)
for qh in range(1, 128):
for qg in range(1, 128):
x = calc(qo, qh, qg)
if x >= 1 and qo + qh + qg < sum(best):
best = (qo, qh, qg)
print(best)