SciELO - Scientific Electronic Library Online

 
vol.32 issue2Comparison between ACI 318-19 and NSR-10 for the structural design of concrete frames in high seismic hazard zones.Metasurfaces in the Antenna Design: An Introduction author indexsubject indexarticles search
Home Pagealphabetic serial listing  

Services on Demand

Journal

Article

Indicators

Related links

  • On index processCited by Google
  • Have no similar articlesSimilars in SciELO
  • On index processSimilars in Google

Share


Ciencia e Ingeniería Neogranadina

Print version ISSN 0124-8170On-line version ISSN 1909-7735

Abstract

TREJOS BURITICA, Omar Iván  and  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 Dec 30, 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.

Keywords : algorithm; learning; function; prime number; paradigm; programming; recursion.

        · abstract in Spanish     · text in Spanish     · Spanish ( pdf )