Omkar Langhe 026557115c Adding algorithm to check if number is prime or not. (#834)
* Optimized algorithm to check if number is prime or not.

* logic to check if given number is prime or not.

* logic to check if given number is prime or not.

* logic to check if given number is prime or not.

* logic to check if given number is prime or not.

* Included appropriate comments as per standards.

* variable name renamed to num

* added @file and @brief in comment. Also added template and variable name changed from is_prime to result

* added @file and @brief in comment. Also added template and variable name changed from is_prime to result

* added template parameter T type in loop
2020-06-13 21:15:37 +05:30
2020-04-29 22:52:44 +05:30
2020-05-27 18:54:19 +05:30
2020-05-23 18:12:44 +02:00
2020-05-24 08:52:09 +02:00
2020-06-12 22:47:55 +00:00

The Algorithms - C++

contributions welcome  GitHub repo size GitHub closed pull requests

All algorithms implemented in C++ (for education)

The implementations are for learning purpose. They may be less efficient than the implementation in the standard library.

Contribute Guidelines

Read our Contribution Guidelines before you contribute.

Languages
C++ 98.6%
CMake 1.3%