TY - JOUR AU - Camacho Medina, José de Jesús PY - 2021/07/29 Y2 - 2024/03/28 TI - A Formula That Generates Prime Numbers: Una Fórmula Que Genera Números Primos JF - Mathematics, Education and Internet Journal JA - MEIJ VL - 22 IS - 1 SE - Mathematics and algorithms DO - 10.18845/rdmei.v22i1.5736 UR - https://revistas.tec.ac.cr/index.php/matematica/article/view/5736 SP - AB - <p>There are various classes of functions that generate prime numbers, some of them are evencapable of producing the nth prime number as is the case of the formula by Willans (1964) and Ruizand Sondow (2014). In this work a function a(n) based on the divisor function d(n) is offered as aproposal, which generates prime numbers. For the sequence defined as: a(n) = n · 2/(n−d(n)) with n&gt;1, it is proved that a(n) produces only zeros and primes: a(n) = 0 if n is composite or a(n) = n if n is prime</p> ER -