Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 03 / SimpleDevidersCount_PrimalityCheck.cpp
diff options
context:
space:
mode:
Commit1850608d0f43ab033baa2412b9721a07d8e6be82 (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2021-03-24 17:29:45 +0200
Committer
 GitHub <noreply@github.com>
2021-03-24 17:29:45 +0200
Files4f9dccfcf7f31ef7bbdda50f3e2f51db170aef90 /Sem. 03/SimpleDevidersCount_PrimalityCheck.cpp
Introduction_to_programming_FMI-1850608d0f43ab033baa2412b9721a07d8e6be82.tar
Introduction_to_programming_FMI-1850608d0f43ab033baa2412b9721a07d8e6be82.tar.gz
Introduction_to_programming_FMI-1850608d0f43ab033baa2412b9721a07d8e6be82.zip
Parentdd0465c4019a6145aca30cd753d43339d2239c9d (diff)
Update SimpleDevidersCount_PrimalityCheck.cpp
1 files changed, 2 insertions, 1 deletions
-rw-r--r--Sem. 03/SimpleDevidersCount_PrimalityCheck.cpp3
diff --git a/Sem. 03/SimpleDevidersCount_PrimalityCheck.cpp b/Sem. 03/SimpleDevidersCount_PrimalityCheck.cpp
index fee3540..db39c9c 100644
--- a/Sem. 03/SimpleDevidersCount_PrimalityCheck.cpp
+++ b/Sem. 03/SimpleDevidersCount_PrimalityCheck.cpp
@@ -14,7 +14,8 @@ int main()
if (n%i == 0)
divCount++;
}
-
+ //Can we reduce the number of steps?
+
if (divCount == 2)
{
cout << "Prime" << endl;