aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--misc/test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/test.cpp b/misc/test.cpp
index fd9c227..50d244b 100644
--- a/misc/test.cpp
+++ b/misc/test.cpp
@@ -8,11 +8,13 @@ int main () {
for (i=x; i>1; --i)
- {if (x%i==0 && x!=i) {
+ {
+ if (x%i==0 && x!=i) {
cout << "Not prime!" << endl;
a=1;
break;
- return i;}}
+ return i; }
+ }
if (a!=1)
cout << "Prime!" << endl;