Fixed lost prime-factor multiplicities after perfect-power reduction
in extended Pollard rho, which could produce incomplete factorizations in
primeFactorizeBig() and missing divisors in divisorsBig().
Fixed a crash when divisorsBig() receives -1,
either alone or in a vector. The divisors of -1 are now
correctly returned as -1 and 1.
Added bounds and metadata checks when reading raw bigz
inputs, so malformed headers, signs, and truncated payloads produce
errors before unsafe reads or allocations. Corrected decoding of
vectors containing leading zero magnitude words.
Fixed scalar integer and logical NA inputs being
factored as integers. primeFactorizeBig(),
quadraticSieve(), and divisorsBig() now reject them
with the existing missing-input error.
Fixed constrained Pollard rho discarding unfinished cofactors when a recursive call exhausts its iteration budget. These cofactors are now retained for later factorization stages.
Fixed GMP allocation leaks during divisor generation by
automatically releasing the divisor storage and temporary large
integers used by divisorsBig().
Added a load-time check that the compiled library version matches the R package version, with reinstall guidance for mismatched installations.
Added a package citation, available through
citation("RcppBigIntAlgos").
Expanded continuous-integration checks across R versions and operating systems, including Linux ARM64, and added installation of the native GMP build dependencies on macOS.
Applied the numeric input limit of 2^53 - 1 to the absolute
value of negative inputs as well as to positive inputs. Larger integers
must be supplied as character strings or bigz values.
Migrated the R interface from Rcpp to cpp11 and replaced RcppThread with standard C++ threads for parallel sieving and elliptic-curve factorization.
Replaced the bundled, modified GMP C++ header with the system
gmpxx.h. Source builds now require the GMP C++ headers and a
C++14-or-newer toolchain.
Moved gmp from Depends to Imports. Loading
RcppBigIntAlgos no longer attaches gmp; use gmp:: or load
gmp explicitly when calling its helpers directly.
Replaced Travis CI with GitHub Actions for package checks and test coverage, and updated documentation links and examples.
Corrected the formatting and completion of showStats output
for smaller inputs and factorizations that finish before the
quadratic-sieve stage.
Increased the elliptic-curve search budget for larger inputs before falling back to the quadratic sieve.
Added vectorized primeFactorizeBig(), which combines trial
division, Pollard's rho, Lenstra's elliptic-curve method, and the
quadratic sieve. It returns bigz factors for a single input and
optionally named lists for multiple inputs.
Added parallel elliptic-curve factorization, controlled by
nThreads, to search for smaller factors of large composite numbers
before using the quadratic sieve.
Added showStats, skipPolRho, skipECM, and
nThreads to divisorsBig(), giving divisor generation the
same factorization controls as primeFactorizeBig().
Removed skipExtPolRho from quadraticSieve(). This
function now skips extended Pollard's rho and elliptic-curve
factorization; use primeFactorizeBig() with skipPolRho and
skipECM to control those stages. The initial trial division and
bounded Pollard's rho pass remain part of quadraticSieve().
Reduced GMP divisibility checks during relation collection by reusing sieve positions to identify which factor-base primes can divide each candidate.
Reduced repeated division and modulo operations when advancing sieve positions between segments, and reorganized sieve-index storage for improved data locality.
Reduced sieve working storage with smaller segments and 16-bit logarithm counters.
Specialized marking for large factor-base primes to avoid repeated loop checks within a sieve segment.
Replaced GMP modular inversion with integer arithmetic when computing sieve start positions.
Clarified that interrupting a parallel factorization may take longer while the current batch of polynomials finishes.
Fixed additional invalid memory accesses in matrix reduction and sanitizer-reported problems in parallel solution search (Issue #1).
Packed binary matrix rows into bitsets, reducing matrix storage and allowing elimination to operate on whole groups of bits at once.
Reduced unnecessary preallocation of relation storage and retuned factor-base and sieve-interval sizes.
Guarded matrix reduction against reading a second row when only one row is available.
Added matrix dimensions to the linear-algebra progress display when
showStats = TRUE and clarified the reported MPQS timing.
Corrected an invalid URL in the README that affected package submission.
Added tests for parallel factorizations and validation of thread-count and logical arguments.
Added nThreads to quadraticSieve() for parallel
polynomial sieving and factor extraction. The default remains a single
thread.
Added skipExtPolRho to quadraticSieve() to bypass the
extended Pollard rho stage while retaining the initial bounded pass.
Exported stdThreadMax() to report the C++ runtime's estimate
of available concurrent threads.
Expanded showStats output to report time spent in Pollard
rho, sieving, and linear algebra, together with total factorization time.
Introduced segmented sieving to limit the working logarithm buffer and improve data locality for large inputs.
Reduced the size of the linear-algebra problem by retaining only polynomial primes used by collected relations.
Reworked relation storage and null-space generation to reduce copying and intermediate allocation.
Switched native factorization code to GMP's C++ interface, using a bundled compatibility header for builds across supported platforms.
Corrected the links to gmp::factorize() in the
divisorsBig() and quadraticSieve() help pages to target the
appropriate help topic.
Reduced memory use and arbitrary-precision arithmetic during sieving by calculating polynomial values only for candidates that pass the logarithmic threshold, instead of storing values for the entire sieve interval.
Replaced a search for the second sieve starting position with a direct calculation and retuned candidate thresholds for the revised sieve.
Separated single-polynomial processing into a helper in preparation for parallel sieving.
Expanded factorization tests to cover larger semiprimes with known prime factors.
Added showStats to quadraticSieve() to report elapsed
time, polynomial counts, and progress collecting smooth and partially
smooth relations.
quadraticSieve() now accepts negative integers, returning
-1 followed by the prime factors of the absolute value.
Long quadratic-sieve calculations now check for user interrupts.
Fixed lost multiplicities when perfect-power reduction leaves a
prime cofactor in quadraticSieve().
Added bounds checks and dynamic growth for GMP storage used by polynomial primes and large cofactors, and improved cleanup of temporary GMP allocations.
divisorsBig() now uses the quadratic sieve when factoring
sufficiently large inputs before generating their divisors.
Added explicit errors for missing or fractional numeric inputs and
numeric inputs greater than 2^53 - 1, with guidance to use
bigz or character inputs for larger integers.
Added partial-relation matching so sieve candidates with the same remaining cofactor can contribute a usable relation.
Reduced relation-storage overhead by keeping lists of prime-factor indices and constructing the linear-algebra matrix after relation collection. Retuned factor-base sizes and candidate thresholds for different input sizes.
Moved the native interface to Rcpp and adopted C++11 throughout the build. Added RcppThread as a build dependency and removed the old GMP-derived C++ wrapper and configure files.
Added algorithm references and updated package credits to acknowledge Mike Tryczak and the Free Software Foundation.
Added continuous-integration checks and coverage reporting.
Fixed additional Solaris compilation errors in the quadratic sieve caused by ambiguous calls to numeric functions.
Fixed Solaris compilation errors in divisor generation caused by ambiguous calls to numeric functions.
Adjusted the quadratic sieve thresholds used when searching for smooth numbers.
Enabled C++11 for Windows builds to address compiler warnings about
long long.
Initial release as bigIntegerAlgos, providing
quadraticSieve() for prime factorization and vectorized
divisorsBig() for divisor generation.