Loading...
Loading...
Contributors:
Dataset URI:
10.5281/zenodo.23166109Abstract The deterministic verification of giant Mersenne primes (M_p = 2^p - 1) is fundamentally constrained by multi-precision integer squaring complexity and GPU memory bandwidth rather than the logical structure of the primality test itself. While software traditionally relies on Richard Crandall’s Irrational Base Discrete Weighted Transform (IBDWT) to embed modular reduction directly inside floating-point Fast Fourier Transforms (FFT), standard 64-bit IEEE 754 double-precision arithmetic encounters fatal roundoff errors as candidate sizes approach d \approx 50 \times 10^6 digits (p > 1.5 \times 10^8). To surpass this floating-point precision boundary, this paper presents a comprehensive GPU-accelerated algorithmic framework transitioning from complex FFTs to exact finite field \mathbb{Z}_q Number Theoretic Transforms (NTTs). We evaluate hardware-level modular reduction mechanisms—comparing Solinas primes, Montgomery reduction, and Barrett reduction—and demonstrate that Barrett reduction, paired with Garner’s mixed-radix Chinese Remainder Theorem (CRT) algorithm, provides optimal flexibility for scaling arbitrary NTT-friendly prime fields (q_i = k_i \cdot N + 1) without domain conversion or multi-precision division overhead. Furthermore, we outline a hierarchical 3-stage parallel carry sweep using GPU warp-shuffle primitives that reduces sequential carry propagation from O(N) serial steps to O(\log N) parallel depth. Integrated with Fermat Probable Prime (PRP) screening, Gerbicz fault tolerance, and High Bandwidth Memory (HBM) optimization, this architecture provides a scalable roadmap for navigating the O(p^2 \log p) algorithmic complexity wall to verify prime candidates beyond 50 million digits. Code and Artifact Availability To facilitate reproducibility and provide direct access to the algorithmic implementations, CUDA/PTX source code, and computational benchmarks discussed in this paper, all supplementary artifacts have been made publicly accessible via the following repository link: Resource URL: https://gemini.google.com/share/fe80ffaa1dca?skid=73a82ca0-4d36-499d-a373-3d860531d4cf Instructions for Access and Utilization Accessing the Workspace: Navigate to the link provided above in a standard web browser. No specialized permissions or authentication keys are required to view the shared session data and code blocks. Reviewing Code Modules: Locate the compiled code blocks within the shared workspace to inspect reference implementations, including: Barrett and Montgomery Reduction Kernels: CUDA PTX assembly mappings optimized for GPU warp-level SIMD execution. Garner’s CRT Reconstruction: Multi-field mixed-radix conversion routines using 64-bit hardware carry chains (add.cc.u64 / addc.u64). Parallel Carry Sweep Sequences: 3-stage hierarchical scan algorithms utilizing GPU warp shuffle primitives (__shfl_up_sync). Execution and Testing: Copy the source code modules directly into your local CUDA runtime environment (requires CUDA Toolkit 11.0 or higher and an NVIDIA GPU with Compute Capability 7.0+ / Volta architecture or newer). Compile using nvcc -O3 -arch=sm_80 (or your corresponding GPU architecture flag). Adjust constant memory array parameters (GarnerConstants) to configure custom NTT-friendly prime fields (q_i = k_i \cdot N + 1) and transform slot lengths (N).
Keyword(s):
Keywords: Mersenne Primes, Number Theoretic Transform (NTT), Irrational Base Discrete Weighted Transform (IBDWT), Barrett Reduction, Montgomery Reduction, Solinas Primes, Garner's CRT Algorithm, GPU Acceleration, CUDA/PTX Optimization, Parallel Carry Sweep, Fermat Probable Prime (PRP), Gerbicz Fault Tolerance, High Bandwidth Memory (HBM3), Arbitrary-Precision Arithmetic. Categorized Keyword Index • Core Number Theory & Primality Testing: Mersenne Primes, Lucas-Lehmer Test, Fermat Probable Prime (PRP) Screening, Multi-Precision Arithmetic, Finite Field Arithmetic (\mathbb{Z}_q). • Transform Domain & Fast Algorithms: Number Theoretic Transform (NTT), Irrational Base Discrete Weighted Transform (IBDWT), Fast Fourier Transform (FFT), Chinese Remainder Theorem (CRT). • Modular Reduction Primitives: Barrett Reduction, Montgomery Reduction, Solinas Primes, Garner's Mixed-Radix Algorithm. • Parallel Computing & Hardware Acceleration: GPU Acceleration, CUDA/PTX Assembly, Warp-Shuffle Primitives, Parallel Prefix Scan, Carry-Chain Optimization, High Bandwidth Memory (HBM3). • System Resilience & Scaling: Gerbicz Error Checking, Silent Data Corruption (SDC), High-Performance Computing (HPC), Computational Complexity Scaling..
MeSH Term(s):
Grants and Funding:
No Grants or Funding Data Available
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)