A prime generating algorithm
Statement
I posted this question in MSE around a month ago, but didn't receive any suitable answers. So, I decided to give it a try here as well-
I was trying to explain the famous proof of infinitude of primes to a young one, and I tried to explicitly show some examples. So, I said something like
Let the only primes be . Then which is a prime.
So, let the only primes be . This time which introduces two more "new primes" in the list.
But, this led me to a different question. In both the mentioned cases, as in general, if we start with the first primes, the "new prime" is the list will not be the -th prime. So, my question is, if we start with a finite number of primes, and go on repeating this algorithm, are we bound to hit all the primes? If not, then what are the primes that we may hit or miss?
So, let me frame the question once again in a more mathy way
Let be a finite set of primes. Apply the following algorithm:
• Define .
• If is prime, add to the set , i.e., take .
• If is not prime, let …
Posed by Sayan Dutta · nt.number-theory, analytic-number-theory, prime-numbers, prime-gaps
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-413396.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-413396.lean
import Mathlib /-! # A prime generating algorithm Source: https://mathoverflow.net/questions/413396 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_413396 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_413396