2609005287
  • Open Access
  • Article

A Computational and Statistical Investigation of the Distribution of Twin Primes and Generalized Mersenne Numbers

  • Ramon Carbó-Dorca 1,2,*,   
  • Krishnan Balasubramanian 3

Received: 05 Jun 2026 | Revised: 23 Jun 2026 | Accepted: 24 Sep 2026 | Published: 30 Sep 2026

Abstract

We outline novel computational and statistical techniques that reveal a direct linear-logarithmic relationship between the number of twin primes and the number of primes in any interval. Using orthogonal-polynomial regression fits together with a direct linear relation of positive slope between the number of twin primes and the length of the natural-number interval, we present strong computational and statistical evidence consistent with the twin prime conjecture. We emphasize that these results constitute heuristic and empirical support rather than a formal deductive proof. We further introduce a generalized Mersenne-number framework that offers a heuristic perspective on the interconnection of primes and on why twin primes may occur infinitely often. Finally, several applications of the enumerated twin primes are outlined, including combinatorial face colorings of an N-dimensional hypercube and their potential use in cryptography.

References 

  • 1.

    Hardy, G.H.; Ramanujan, S. Asymptotic Formulӕ for the Distribution of Integers of Various Types*. Proc. Lond. Math. Soc. 1917, 2, 112–132. https://doi.org/10.1112/plms/s2-16.1.112.

  • 2.

    Hardy, G.H.; Wright, E.M. An Introduction to the Theory of Numbers; Oxford University Press: Oxford, UK, 1979. https://doi.org/10.1093/oso/9780199219858.001.0001.

  • 3.

    Erdős, P. On a problem in elementary number theory and a combinatorial problem. Math. Comput. 1964, 18, 644–646. https://doi.org/10.1090/s0025-5718-1964-0170852-8.

  • 4.

    Riordan, J. Combinatorial Identities; John Wiley and Sons, Inc.: New York, NY, USA, 1968.

  • 5.

    Holben, C.A.; Jordan, J.H. The Twin Prime Problem and Goldbach’s Conjecture in the Gaussian Integers. Fibonacci Q. 1968, 6, 81–86. https://doi.org/10.1080/00150517.1968.12431208.

  • 6.

    Erdős, P. Problems and Results on Combinatorial Number Theory. In A Survey of Combinatorial Theory; North-Holland: Amsterdam, The Netherlands, 1973; pp. 117–138. https://doi.org/10.1016/b978-0-7204-2262-7.50017-x.

  • 7.

    Erdős, P. Problems in number theory and combinatorics. In Proceedings of the Sixth Manitoba Conference on Numerical Mathematics, Winnipeg, Manitoba, Canada, 1977; Volume 18, pp. 35–58.

  • 8.

    Plaisted, D.A. Fast verification, testing, and generation of large primes. Theor. Comput. Sci. 1979, 9, 1–16. https://doi.org/10.1016/0304-3975(79)90002-1.

  • 9.

    Perelli, A.; Pintz, J. On the exceptional set for the 2k-twin primes problem. Compos. Math. 1992, 82, 355–372.

  • 10.

    Pollack, P. A polynomial analogue of the twin prime conjecture. Proc. Am. Math. Soc. 2008, 136, 3775–3784. https://doi.org/10.1090/s0002-9939-08-09351-9.

  • 11.

    Dinculescu, A. The Twin Primes Seen from a Different Perspective. Br. J. Math. Comput. Sci. 2013, 3, 691–698. https://doi.org/10.9734/bjmcs/2013/4358.

  • 12.

    Mazur, B.; Stein, W. Prime Numbers and the Riemann Hypothesis; Cambridge University Press: Cambridge, UK, 2016. https://doi.org/10.1017/cbo9781316182277.

  • 13.

    de Polignac, A. Recherches nouvelles sur les nombres premiers. Comptes Rendus 1849, 29, 397–401.

  • 14.

    Glaisher, J.W.L. On Long Successions of Composite Numbers. Messenger Math. 1878, 7, 176.

  • 15.

    Glaisher, J.W.L. An Enumeration of Prime-Pairs. Messenger Math. 1878, 8, 28–33.

  • 16.

    Brun, V. Über das Goldbachsche Gesetz und die Anzahl der Primzahlpaare. Arch. Math. Naturvidenskab 1915, 34, 3–19.

  • 17.

    Bateman, P.T.; Diamond, H.G. Analytic Number Theory; World Scientific: Singapore, 2004; pp. 313 and 334–335. https://doi.org/10.1142/5605.

  • 18.

    Goldston, D.A.; Motohashi, Y.; Pintz, J.; et al. Small gaps between primes exist. Proc. Jpn. Acad. Ser. A Math. Sci. 2006, 82, 61–65. https://doi.org/10.3792/pjaa.82.61.

  • 19.

    Goldston, D.A.; Graham, S.W.; Pintz, J.; et al. Small gaps between primes or almost primes. Trans. Am. Math. Soc. 2009, 361, 5285–5330. https://doi.org/10.1090/s0002-9947-09-04788-6.

  • 20.

    Halberstam, H.; Richert, H.E. Sieve Methods; Dover Publications: Mineola, NY, USA, 2011; p. 117.

  • 21.

    Dunham, W. A Note on the Origin of the Twin Prime Conjecture. Not. Int. Congr. Chin. Math. 2013, 1, 63–65. https://doi.org/10.4310/iccm.2013.v1.n1.a13.

  • 22.

    Zhang, Y. Bounded gaps between primes. Ann. Math. 2014, 179, 1121–1174. https://doi.org/10.4007/annals.2014.179.3.7.

  • 23.

    Maynard, J. Small gaps between primes. Ann. Math. 2015, 181, 383–413. https://doi.org/10.4007/annals.2015.181.1.7.

  • 24.

    Zhou, M.; Huang, J.S.; Zuo, Z. Investigating Twin Prime Numbers with Mathemagical Twin Black Hole. Comput. Appl. Math. J. 2016, 2, 29–33.

  • 25.

    Sloane, N.J.A. Sequence A005597 (Decimal Expansion of the Twin Prime Constant). In The On-Line Encyclopedia of Integer Sequences; OEIS Foundation: Highland Park, NJ, USA, 1995.

  • 26.

    Tenenbaum, G.; Mendès France, M. The Prime Numbers and Their Distribution; American Mathematical Society: Providence, RI, USA, 2000; p. 28. https://doi.org/10.1090/stml/006.

  • 27.

    Tenenbaum, G.; Mendès France, M. Les Nombres Premiers, Entre L'ordre Et Le Chaos; DUNOD: Malakoff, France, 2011; pp. 39–41.

  • 28.

    Carbó-Dorca, R.; Balasubramanian, K. Generalized Mersenne Numbers and Prime Number Generation. Qeios 2026. preprint. https://doi.org/10.32388/g7fvga.

  • 29.

    Balasubramanian, K.; Carbó-Dorca, R. Three conjectures on extended twin primes and the existence of isoboolean and singular primes inspired by relativistic quantum computing. J. Math. Chem. 2022, 60, 1571–1583. https://doi.org/10.1007/s10910-022-01364-5.

  • 30.

    Balasubramanian, K. Enumeration of n-Dimensional Hypercubes, Icosahedra, Rubik’s Cube Dice, Colorings, Chirality, and Encryptions Based on Their Symmetries. Symmetry 2024, 16, 1020. https://doi.org/10.3390/sym16081020.

  • 31.

    Balasubramanian, K. Computations of Colorings 7D‐Hypercube's Hyperplanes for All Irreducible Representations. J. Comput. Chem. 2020, 41, 653–686. https://doi.org/10.1002/jcc.26118.

  • 32.

    Balasubramanian, K. Nonrigid water octamer: Computations with the 8‐CUBE. J. Comput. Chem. 2020, 41, 2469–2484. https://doi.org/10.1002/jcc.26402.

Share this article:
How to Cite
Carbó-Dorca, R.; Balasubramanian, K. A Computational and Statistical Investigation of the Distribution of Twin Primes and Generalized Mersenne Numbers. Applied Mathematics and Statistics 2026, 3 (2), 20. https://doi.org/10.53941/ams.2026.100020.
RIS
BibTex
Copyright & License
article copyright Image
Copyright (c) 2026 by the authors.
Article Metrics
14
Article Views
0
Citations