Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 03 / SimpleDevidersCount_PrimalityCheck.cpp
diff options
context:
space:
mode:
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;