Prime Number Tools
–
&
Algorithms ▼
- Primality: Deterministic
Miller-Rabinfor 64-bit; probabilistic for BigInt. - Sieve:
Eratosthenesup-to-N; segmented for ranges. - Factorization: Trial division,
6k±1optimization. - Nth prime: PNT upper bound
n(ln n + ln ln n). - Goldbach: Sieve-based scan.
- GCD: Euclidean algorithm (BigInt).
Result
—
Advertisement