aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--misc/test.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/misc/test.cpp b/misc/test.cpp
deleted file mode 100644
index 109925d..0000000
--- a/misc/test.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <iostream>
-using namespace std;
-
-int main () {
- unsigned long long x,i;
- bool a;
- cout << "Enter a number:"; cin >> x;
-
- for (i=x; i>1; --i)
- {
- if (x%i==0 && x!=i) {
- cout << x << " is not prime!" << endl;
- cout << "Divisible by " << i << "." << endl << endl;
- a=1;
- break;
- }
- }
-
- if (!a){
- cout << x << " is a prime number!" << endl << endl;
- return 0;
- }
-} \ No newline at end of file