SciELO - Scientific Electronic Library Online

 
vol.32 número2Comparación entre el ACI 318-19 y la NSR-10 para diseño estructural de pórticos de concreto en zonas de amenaza sísmica altaMetasuperficíes en el diseño de antenas: una introducción índice de autoresíndice de materiabúsqueda de artículos
Home Pagelista alfabética de revistas  

Servicios Personalizados

Revista

Articulo

Indicadores

Links relacionados

  • En proceso de indezaciónCitado por Google
  • No hay articulos similaresSimilares en SciELO
  • En proceso de indezaciónSimilares en Google

Compartir


Ciencia e Ingeniería Neogranadina

versión impresa ISSN 0124-8170versión On-line ISSN 1909-7735

Resumen

TREJOS BURITICA, Omar Iván  y  MUNOZ GUERRERO, Luis Eduardo. Two algorithms to find twin prime numbers in a specified range using functional programming. Cienc. Ing. Neogranad. [online]. 2022, vol.32, n.2, pp.131-144.  Epub 30-Dic-2022. ISSN 0124-8170.  https://doi.org/10.18359/rcin.6252.

A great challenge for teaching engineers is to find applications where specific engineering is a solution to problems in other areas in such a way as to take advantage of its conceptual and instrumental potential. Such is the case of computer programming, which, as part of systems engineering, allows solving problems thanks to today's great technological capabilities that allow taking advantage of what human knowledge has developed. This paper presents an algorithmic solution to the problem of finding twin prime numbers in a range specified by the user. The functional programming paradigm and concepts such as function, recursion, and cycles were used to solve the problem. From this perspective, reliable results were obtained that comply both with the definition of twin prime numbers and with the principles of algorithmic efficiency. It is concluded that to the extent that applications that solve problems in other areas can be shared with programming students, the concepts of a paradigm will become much more understandable and applicable, and the sense of taking advantage of technology in favor of the human being will be found.

Palabras clave : algorithm; learning; function; prime number; paradigm; programming; recursion.

        · resumen en Español     · texto en Español     · Español ( pdf )