Searching for pseudosquares on one desktop computer: a meet-in-the-middle drum, a bit-parallel funnel and memory traffic

We describe the program that verified L_379 = L_383 = L_389 = 12299505549823064272744801 by searching the window [10^25, 1.23·10^25) completely on a single desktop computer, and the sequence of changes that brought the projected time for that window from 84 days to about 6 days of computing on the same machine (AMD Ryzen 9 5900X, 24 threads). The search is a meet-in-the-middle enumeration of the residue classes allowed by the primes up to 89 (a "drum") followed by a funnel over the primes up to 379. The gains came, in order, from walking memory linearly (sorted chunks instead of heaps), from making the per-pair test cheap (packed residues, radix sorting fitted to the data, CRT pairs), from testing 64 pairs per instruction (bit rows), and finally from reducing the traffic to main memory (buckets that are sorted and joined while in cache). Each version was checked against the previous one: identical candidates, numbers of drum matches and survivors. Every step is measured with one protocol and the measurements are reproducible from the published code. Result: https://doi.org/10.5281/zenodo.24659268Code of all versions and measurements: https://github.com/Flaman55/PseudoSquareDrumFinal program and run: https://github.com/Flaman55/PseudoSquareSearch

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-29
DOI
https://doi.org/10.5281/zenodo.24661068
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Searching for pseudosquares on one desktop computer: a meet-in-the-middle drum, a bit-parallel funnel and memory traffic

ARTUR FLAMANDZKI
3 links
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

Searching for pseudosquares on one desktop computer: a meet-in-the-middle drum, a bit-parallel funnel and memory traffic

ARTUR FLAMANDZKI
preprint en

Abstract

We describe the program that verified L_379 = L_383 = L_389 = 12299505549823064272744801 by searching the window [10^25, 1.23·10^25) completely on a single desktop computer, and the sequence of changes that brought the projected time for that window from 84 days to about 6 days of computing on the same machine (AMD Ryzen 9 5900X, 24 threads). The search is a meet-in-the-middle enumeration of the residue classes allowed by the primes up to 89 (a "drum") followed by a funnel over the primes up to 379. The gains came, in order, from walking memory linearly (sorted chunks instead of heaps), from making the per-pair test cheap (packed residues, radix sorting fitted to the data, CRT pairs), from testing 64 pairs per instruction (bit rows), and finally from reducing the traffic to main memory (buckets that are sorted and joined while in cache). Each version was checked against the previous one: identical candidates, numbers of drum matches and survivors. Every step is measured with one protocol and the measurements are reproducible from the published code. Result: https://doi.org/10.5281/zenodo.24659268Code of all versions and measurements: https://github.com/Flaman55/PseudoSquareDrumFinal program and run: https://github.com/Flaman55/PseudoSquareSearch

Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon