A Formula That Generates Prime Numbers Una Fórmula Que Genera Números Primos

Main Article Content

José de Jesús Camacho Medina

Abstract

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>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

Article Details

How to Cite
Camacho Medina, J. de J. (2021). A Formula That Generates Prime Numbers: Una Fórmula Que Genera Números Primos. Mathematics, Education and Internet Journal, 22(1). https://doi.org/10.18845/rdmei.v22i1.5736
Section
Mathematics and algorithms