foxmath 0.20.0__tar.gz → 0.20.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foxmath
3
- Version: 0.20.0
3
+ Version: 0.20.2
4
4
  Summary: Minimalist CLI & library for number theory and cryptography: Shanks's SQUFOF, Quadratic Sieve & Dixon factoring, Lenstra ECM, Pollard p-1, Lucas-Lehmer Mersenne tests, Fermat factor, RSA & Diffie-Hellman cryptosystems, BSGS discrete log, arithmetic functions (mu, sigma, tau), Jacobi symbol, Tonelli-Shanks, elliptic curves, CRT, and continued fractions.
5
5
  Author-email: Abhrankan Chakrabarti <abhrankan@gmail.com>
6
6
  License: MIT
@@ -42,7 +42,7 @@ Built with curiosity — for students, tinkerers, and crypto/math enthusiasts.
42
42
  - Jacobi symbol (jacobi)
43
43
  - Solovay–Strassen probabilistic primality test (solovay)
44
44
  - Modular square root via Tonelli-Shanks (sqrtmod)
45
- - Deterministic Miller-Rabin primality test (isprime)
45
+ - Miller-Rabin primality test: deterministic for n < 3.3 × 10²⁴ via 13 bases, strong probable prime above (isprime)
46
46
  - Prime factorization via Pollard's rho & trial division (factor)
47
47
  - Discrete logarithm solver via Baby-step Giant-step (dlog)
48
48
  - Euler's totient φ(n) and Carmichael λ(n) (totient)
@@ -309,6 +309,7 @@ Time: 68 µs
309
309
  ```
310
310
 
311
311
  ```bash
312
+ # Exact deterministic for n < 3.3e24; strong probable prime above
312
313
  foxmath isprime 104729
313
314
  ```
314
315
  ```