Created
January 16, 2026 16:54
-
-
Save Hermann-SW/14c7c7c6acd1f69f8dc36e51af1fdb3a to your computer and use it in GitHub Desktop.
Compute number of primes of form x^2 + x + A for x <= 10^11 (for Jacobson and Williams A = 3399714628553118047)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export(A=3399714628553118047); a(n)=parsum(k=0, 10^n, isprime(k^2+k+A)); | |
| default(threadsizemax,1000*10^6); \\ default 8MB was too small | |
| # | |
| print(a(11)); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Michael J. Jacobson, Jr.,
Computational techniques in quadratic fields,
Master’s thesis, University of Manitoba, Winnipeg, Manitoba, 1995.
Michael J. Jacobson Jr. and Hugh C. Williams,
New Quadratic Polynomials With High Densities Of Prime Values,
Math. Comp., 72, 241, 499-519, 2002.
Number of primes of the form x^2 + x + A for x <= 10^n, with A=3399714628553118047 from Jacobson:
a(11) is 1.61412× bigger than a(11) for A=41 (Euler polynomial primes),
and 5.35848× bigger than number of "normal" primes up to 10¹¹.