aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/test.cpp b/misc/test.cpp
index 50d244b..40e15c5 100644
--- a/misc/test.cpp
+++ b/misc/test.cpp
@@ -3,7 +3,7 @@ using namespace std;
int main () {
unsigned long long x,i;
- int a;
+ bool a;
cout << "Enter a number:"; cin >> x;
for (i=x; i>1; --i)
@@ -16,7 +16,7 @@ int main () {
return i; }
}
- if (a!=1)
+ if (!a)
cout << "Prime!" << endl;
return 0;
}