Skip to main content

On the Distribution of Smaller Factors in Semiprimes

Jonathan Kendall, 2026

An empirical study of the coordinate θ = log p / log n for semiprimes n = pq (p ≤ q). Exact enumeration up to N ≤ 10⁸ shows that the proportion P(N, θ₀) of semiprimes with θ ≤ θ₀ increases monotonically with N, consistent with O(1/log log N) decay toward a limiting value — the classical rate for related semiprime counts (Montgomery–Vaughan §7.4). A novel discrete activation phenomenon is documented: each prime p contributes a visible step in P(N, θ₀) when N crosses p^(1/θ₀). A refined heuristic prefactor f(θ₀) = log(1/θ₀) − θ₀ − log 2 + ½ reduces the maximum relative prediction error for δ · log log N from 4.3× (naive Mertens) to under 1.21× across θ₀ ∈ [0.10, 0.45]. Several geometric and spectral embeddings (additive phase wrapping, multiplicative phase maps, spectral fingerprint, factor-ratio spectrum) all fail to recover the structure carried by θ, consistent with a separation principle: factor asymmetry is not recoverable from any function of n alone that is multiplicative or additive in log-space.

Paper

"On the Distribution of Smaller Factors in Semiprimes: Discrete Activation Thresholds, Slow Convergence, and a Refined Heuristic" — Jonathan Kendall, 2026

📄 Read the paper (PDF) | [Submitted to Integers: Electronic Journal of Combinatorial Number Theory]

To reproduce all paper results exactly:

python3 scripts/verify_semiprime_tables.py

The PrimeHelix toolkit (CLI, visualizations, structure-scan) is a separate research tool built alongside the paper.

Requirements

  • Python 3.8+, numpy, scipy, matplotlib
  • ~400 MB RAM for SPF sieve to N = 1e8
  • Runtime: ~8 minutes

Reproduce all results

python3 scripts/verify_semiprime_tables.py

scripts/verify_semiprime_tables.py is the canonical script (commit fc43ef0). scripts/verify_paper_tables.py is an earlier version kept for reference only.

Outputs

  • results/table1.csv, table2.csv, table3.csv
  • activation_theta_0_10.png
  • stabilisation.png

Verified checksums (exact, no sampling)

  • 210,035 semiprimes ≤ 1e6
  • 1,904,324 semiprimes ≤ 1e7
  • 17,427,258 semiprimes ≤ 1e8

Repository structure

paper/          — paper.tex, cover_letter.tex, paper.pdf (canonical)
paper/drafts/   — earlier draft versions
scripts/        — all Python and shell scripts
figures/        — all generated plots
datasets/       — raw data CSVs and JSON
results/        — CSV outputs from verification script

Metadata

Release files for primehelix 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for primehelix 1.0.0
File Size Uploaded Provenance Actions
primehelix-1.0.0.tar.gz 40.9 kB With provenance Details for primehelix-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for primehelix 1.0.0
File Interpreter ABI Platform Actions
primehelix-1.0.0-py3-none-any.whl Python 3 none any Details for primehelix-1.0.0-py3-none-any.whl

Total release size: 79.8 kB

Release files / primehelix-1.0.0.tar.gz

Download URL primehelix-1.0.0.tar.gz
Size 40.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bc79d19b3d9080b5a690c46a3de5d0bb41e2391366165359fa84f89a92036f34
BLAKE2b-256 checksum
How to use checksums
f79db98b49463253b41d659b9c62ad1d8164ca17a43128bbbf3584fcded2097c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.

Transparency log

Release files / primehelix-1.0.0-py3-none-any.whl

Download URL primehelix-1.0.0-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35f50dd912b2e2b2b4e88a07a79c9facd1a536f9a2497ee97dab4449a3c915dc
BLAKE2b-256 checksum
How to use checksums
62ae4fec0b2de843b3196158a87b9c49fb30bc172d45703c287654d91793c49b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.

Transparency log

Security for primehelix 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for primehelix-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page