Site icon Learn C++

Dev-C++ Tutorial: Easily Learn To Count Prime Numbers On Windows

Embarcadero Dev-C++

Embarcadero Dev-C++ is free, and is a fast, portable and simple C/C++ IDE for Windows. The free version is great for beginners. If you want to develop professionally it is highly recommended you start with C++ Builder CE version. Dev-C++ can be downloaded from Dev cpp or from Github. The original author of the software is Bloodshed Software.

Prime numbers are interesting area to research. A prime number, it is also called prime shortly , is a natural number (a positive integer)  greater than 1 that is not a product of two smaller natural numbers. If a number is not prime then it is called as a composed number. There are several mathematical questions regarding prime numbers are still unsolved.  Finding them and relations and their effects on some other functions, graphics really interesting in mathematical phenomena.

Here is a Dev-C++ Builder example to find number of prime numbers in a given range.

[crayon-662321e44bd35564459567/]

Output will be as here.

Exit mobile version