Rand Stats

Math::NumberTheory

zef:antononcube
Changes of the Raku package "Math::NumberTheory".

2026-01-06 0.0.26
    - Bug fix: correct &random-prime behaviour.
    - Extended the signature of &random-prime to take :$min and :$max options.
    - The CLI can handle ranges now.

2025-12-27 0.0.25
    - Bug fix: Proper &is-gaussian-prime test (for negative components).
        - One fix is for the application of the built-in &is-prime.
            - The built-in &is-prime always gives False on negative integers.
        - The other fix for the mod application (over a negative component.)

2025-12-22 0.0.24
    - Documentation update: README and sub WHY notes.

2025-12-21 0.0.23
    - Implemented &is-abundant-number, &is-deficient-number, &is-perfect-number, &abundant-number, &deficient-number, &perfect-number.
    - First version of the CLI script number-theory.

2025-12-19 0.0.22
    - Implemented &is-harshad-number.
    - Fix: proper respect of the option :gaussian-integers by &is-prime.

2025-12-17 0.0.21
    - Implemented &integer-partitions.
        - It slow for larger numbers, ≥ 1000.
    - Implemented &integer-digits and &is-happy-number.

2025-05-28 0.0.20
    - Added &is-composite, &is-prime-power, &mangold-lambda, and &are-coprime and related tests.

2025-04-07 0.0.19
    - Faster and more robust &multiplicative-root.
    - Made &power-mod and &primitive-root* to work with a first argument being a list.