![](/images/dot.gif)
Home > Numbers
Quadratic Primes (Posted on 2024-02-07) |
|
Consider the quadratic:
n^2 + an + b.
Consider integer coefficients a and b in the range:
|a|< 1000, |b| ≤ 1000.
For what values of a and b will the expression produce the maximum number of primes for consecutive values of n, starting with n=0? (Project Euler problem 27)
|
Submitted by Steven Lord
|
No Rating
|
|
Solution:
|
(Hide)
|
a = -61, b = 971, will generate 70 primes for consecutive n's starting at n=0.
Footnote: Euler himself discovered a simpler quadratic, one which gives 40 primes: n^2 + n + 41 |
Comments: (
You must be logged in to post comments.)
|
![](/images/dot.gif) |
Please log in:
Forums (0)
Newest Problems
Random Problem
FAQ |
About This Site
Site Statistics
New Comments (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On
Chatterbox:
|