Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding algorithm to check if number is prime or not. (TheAlgorithms#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
- Loading branch information