-
Notifications
You must be signed in to change notification settings - Fork 0
Project restrictions
Ahmet Burak Biçer edited this page Jun 30, 2026
·
1 revision
These rules apply to all contributors and automated agents.
- Deterministic — no randomness; same input ⇒ same output, always.
- No stochastic Miller–Rabin — no random bases, no “probably prime” engines as the core.
- No prime libraries as the implementation (e.g. primesieve, sympy.isprime as the engine).
- Allowed: NumPy / Numba for speeding up our trial division and helpers.
-
Correctness model
-
$n < 2^{64}$ : exact 30030-wheel trial division up to$\lfloor\sqrt{n}\rfloor$ - larger
$n$ : small-factor trial, then AKS (may be slow for huge primes)
-
Fixed witness Miller–Rabin is deterministic only on proven finite ranges (e.g. 64-bit with a known base set). That does not give a uniform finite-base proof for every natural number. This project optimizes under the stricter goal: deterministic for all
Best-Prime-Number-Function — deterministic primality (no stochastic MR) · Source · Wiki maintained from docs/wiki/ + this GitHub Wiki
Wiki
- Home
- Project restrictions
- Algorithm overview
- CI and automation
- Agent briefing
- Contributing
- Benchmarks
- Hall of fame
AI-designed project — review before production use.