Ir al contenido
m·amathatlas
ExplorarAcerca deProblemas abiertosAutores citadosMi bibliotecaFeedback
Iniciar sesión
FRENES
Cargando vistas…Solo vistas recientes, en todos los idiomas. El historial de Vercel no está disponible para esta página. Las visitas repetidas en la misma pestaña se agrupan durante 30 minutos.
CompartirLinkedInXFacebookWhatsApp
← Todos los problemas abiertos
Pregunta sin respuesta

A prime generating algorithm

Teoría de números

Importado el 28 de noviembre de 2026

El foro clasificaba esta pregunta como sin respuesta en la fecha de recopilación. Esto no certifica un problema abierto de investigación; consulta las respuestas y el historial de la fuente.

Los enunciados y resúmenes están en inglés. Los conceptos de apoyo y los artículos de Wikipedia disponibles en español ayudan a comprenderlos. La fuente conserva la formulación completa y el debate.

Enunciado del problema (inglés)

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 2,3,52,3,52,3,5. Then N=2×3×5+1=31N=2\times 3\times 5+1=31N=2×3×5+1=31 which is a prime.

So, let the only primes be 2,3,5,312,3,5,312,3,5,31. This time N=2×3×5×31+1=931=72×19N=2\times 3\times 5\times 31+1=931=7^2\times 19N=2×3×5×31+1=931=72×19 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 kkk primes, the "new prime" is the list will not be the (k+1)(k+1)(k+1)-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 P={p1,p2,…,pk}P=\{p_1,p_2,\dotsc ,p_k\}P={p1​,p2​,…,pk​} be a finite set of primes. Apply the following algorithm:

  • Define N=∏i=1kpi+1N=\prod_{i=1}^kp_i+1N=∏i=1k​pi​+1.

  • If NNN is prime, add NNN to the set PPP, i.e., take P=P∪{N}P=P\cup \{N\}P=P∪{N}.

  • If NNN is not prime, let N=q1α1q2α2⋯qmαmN=q_1^{\alpha_1}q_2^{\alpha_2}\dotsm q_m^{\alpha_m}N=q1α1​​q2α2​​⋯qmαm​​ where qi<qi+1q_i<q_{i+1}qi​<qi+1​ ∀i∈{1,2,…,m−1}\forall i\in\{1,2,\dotsc ,m-1\}∀i∈{1,2,…,m−1}. Add q1q_1q1​ to PPP, i.e., take P=P∪{q1}P=P\cup \{q_1\}P=P∪{q1​}.

  • Repeat steps 1, 2, 3 using updated PPP.

Euclid's proof guarantees that this algorithm will never stop. The question is, for what initial "seeds" PPP is this algorithm guaranteed to hit some given prime ppp in a finite number of steps (if that's possible)? If it indeed does, then how many steps will it take? If not, then for some given initial seed PPP, what are the primes that we can be sure to miss? What changes (if any) will we notice if we change the 3rd step of the algorithm to "take P=P∪{q1,q2,…,qm}P=P\cup \{q_1,q_2,\dotsc, q_m\}P=P∪{q1​,q2​,…,qm​}" (i.e., instead of updating the list with the least new prime, we are updating it with all the new primes)?

Although the question apparently seems to be quite elementary, I don't see any obvious way to proceed. I just feel like we need some analytic tools to answer this. I would love to know your thoughts on it.

OEIS A051342 pointed out by Steven Clark and the talk Booker and Pomerance - Euclidean prime generators by Gerry Myerson may be of some help.

An answer by Will Jagy to the MSE question (that I linked at the beginning) gives us an idea of the algorithm using a computer programme. That may of be some help as well.

Enunciado y contexto adaptados de MathOverflow · Sayan Dutta

CC BY-SA 4.0 · Formato adaptado; fórmulas matemáticas conservadas · Historial de la fuente

Conceptos para comprender

Número primo
Un entero mayor que 1 cuyos únicos divisores positivos son 1 y él mismo. Por ejemplo: 2, 3, 5 y 7.

Temas : nt.number-theory · analytic-number-theory · prime-numbers · prime-gaps

Autores indicados por la fuente : Sayan Dutta

Fuentes y estado original

  • MathOverflow Estado en la fuente : unanswered at collection

Última actividad en la pregunta : 8 de enero de 2022

Cobertura, fuentes y método

Este contador mide las fichas importadas, incluidas variantes distintas. No cuenta todas las preguntas matemáticas abiertas del mundo. Una ficha puede pertenecer a varias áreas y fuentes.

El repertorio no es exhaustivo ni se actualiza en tiempo real. « Abierto según la fuente » describe la clasificación observada al importar; no se ha verificado independientemente cada ficha importada. Las 32 fichas explicadas se revisaron por separado.

Formal Conjectures: se conservan solo enunciados « research open » sin prueba formal indicada; se comprueba su etiqueta en una versión concreta del repositorio. Las variantes siguen separadas. Un « sorry » no basta para establecer que el problema sigue abierto.

Erdős: se excluyen problemas resueltos, independientes o con una solución Lean, incluidos los « open (Lean) ». Se fusionan las coincidencias exactas con los enunciados principales de Formal Conjectures.

Open Problem Garden: se contrasta el índice abierto con el de resueltos; se excluyen spam, copias identificadas y algunos estados obsoletos. Los enunciados y sus definiciones se atribuyen a las páginas originales; se conservan las fórmulas y el contenido sigue bajo la GFDL. Se agrupan los duplicados reconocidos, sin resolver todas las equivalencias matemáticas.

OEIS: extracción directa de comentarios y fórmulas conjeturales, una ficha por sucesión, excluyendo resoluciones mencionadas. MathOverflow y Math Stack Exchange: preguntas clasificadas sin respuesta por su API, excluyendo publicaciones cerradas y categorías ajenas a la investigación. Se distinguen de los problemas señalados como abiertos. La colección es parcial y fechada; cada ficha atribuye autores y licencia.

Las exclusiones documentadas tienen en cuenta anuncios recientes y estados contradictorios. Una variante más fuerte o un caso particular puede seguir abierto tras resolverse otro enunciado.

Atribución: The Formal Conjectures Authors; teorth/erdosproblems y sus colaboradores; Open Problem Garden y sus colaboradores. Cada fuente conserva su licencia.

  • Formal Conjectures · 1924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18.857 · CC BY-SA 4.0
  • MathOverflow · 19.035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Comunicar un avance o una corrección
mathatlas

Un atlas independiente para comprender, leer y cuestionar la investigación.

Los artículos presentan resultados anunciados en distintas fases de verificación.
NewsletterDar mi opiniónAcerca de Datos y privacidad
Created by Sonny Mupfuni