C++ Programming GalleryMath and others

Prime Number Detector in C++

Program that determines if an entered number is a prime number.

Programa que determina si un número ingresado es un número primo.

Developed by:

JOSE LUIS DE LA CRUZ LAZARO

YACSHA – Software & Desing, since 1999, Lima – Perú
The World of Chaos – EL MUNDO DEL CAOS – Unlimited Programming

You can DOWNLOAD the SOURCE CODE and executable software for FREE from here:

Join The World of Chaos Developer Community😃

Contribute to the project on Github!

HISTORY

  • Version 2 – 24-IV-2024
    • Update math-and-others\prime – Porting to VC++ 2017
    • Update code to C++17
    • To determine the prime number the modified Eratosthenes Algorithm is now used. Only go through odd numbers to speed up the calculation
    • It works with unsigned long long values, which allows the program to work with natural numbers less than or equal to 18446744073709551615
    • The program GUI informs if the number entered is greater than the maximum supported value
    • If the number entered is not prime, the first divisor found is displayed.
  • Version 1.0 – 17-IV-2001
  • -First version for Borland C++ 3.1 and Turbo C 3.0

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button