hardmath
An interesting formula for generating a good many (but not all) primes is n2 + n + 41. If we plug in consecutive integers 1, 2, 3, etc., at least up to a certain point, we can generate prime numbers. Give an integer for which the formula fails.
Common Wrong Answers
“1”
When n = 1, the formula calculates to 43, which is a prime number, so it does not fail.
“39”
For n = 39, the formula yields 1601, which is also a prime number, thus it does not fail.
“50”
While the formula may eventually yield a composite number for n = 50, it does not fail at that integer, as it produces 2601, which is the square of 51, but this is beyond the specified point of failure.