Determinacion simple de un número primo aplicando programacion funcional a través de DRSCHEME
DOI:
https://doi.org/10.22517/23447214.379Abstract
Se presenta en este artículo una solución simple y sencilla que aprovecha los recursos conceptuales de la programación funcional y su aplicación en el Lenguaje de Programación DrScheme. Si bien determinar si un número es primo o no corresponde a uno de los enunciados más comunes en programación, la solución que se puede alcanzar aplicando los fundamentos de la programación funcional, y que se presenta en este artículo, podría considerarse como la más simple teniendo en cuenta la aparente complejidad que, desde otros paradigmas, pareciera tener este enunciado. Se basa en tres elementos claros para su implementación: adecuación de la definición de lo que es un número primo, aprovechamiento del concepto de recursión y aplicación del concepto de Funcionalidad que es la que simplifica la solución.Downloads
Downloads
-
Vistas(Views): 1844
- PDF (Español (España)) Descargas(Downloads): 1303
Published
How to Cite
Issue
Section
License
The undersigned authors declare that the article submitted to the journal Scientia et Technica is an original work and that all its content is free of third-party copyright restrictions or has the corresponding authorizations. Consequently, the authors assume responsibility for any litigation or claim related to intellectual property rights, releasing the Technological University of Pereira and the journal Scientia et Technica from any liability.
If the submitted work is accepted for publication, the authors retain copyright to the article and grant the journal Scientia et Technica the right of first publication, as well as a non-exclusive, perpetual license to reproduce, edit, distribute, display, and publicly communicate the article in any medium or format, including print, electronic, databases, repositories, the Internet, or other scientific dissemination systems. The authors agree that the article will be published in open access and distributed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).
The journal Scientia will respect in all cases the moral rights of the authors, in accordance with the provisions of article 30 of Law 23 of 1982 of the Republic of Colombia, recognizing the authorship of the work, the right to integrity and the right of disclosure, which are inalienable and non-waivable.