declassify some projects

This commit is contained in:
2023-06-19 14:09:54 +01:00
parent 307c513a9b
commit 30a1e0e358
40 changed files with 2828 additions and 8 deletions
+25
View File
@@ -0,0 +1,25 @@
def step(x):
return ((x * 1039) + (x * 6177) + 1605 + (x * 4253)) % 8041
points = set()
a, b, c = None, None, 417
for n in range(100000):
a, b, c = b, c, step(c)
if a is not None and b is not None:
points.add((a, b, c))
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = plt.axes(projection="3d")
def unzip(l):
ls = []
for x in l:
for i, v in enumerate(x):
if len(ls) <= i:
ls.append([])
ls[i].append(v)
return ls
ax.scatter(*unzip(points))
plt.show()