aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-04-09 14:57:42 -0500
committerRossTheRoss <msattr@gmail.com>2019-04-09 14:57:42 -0500
commit167139f22e6d5258485c199a795ef317d5433115 (patch)
tree31c833946b9700f55711601abba6aa24e21219a6
parentMerge branch 'master' of github.com:RosstheRoss/TestingFun (diff)
downloadhomework-167139f22e6d5258485c199a795ef317d5433115.tar
homework-167139f22e6d5258485c199a795ef317d5433115.tar.gz
homework-167139f22e6d5258485c199a795ef317d5433115.tar.bz2
homework-167139f22e6d5258485c199a795ef317d5433115.tar.lz
homework-167139f22e6d5258485c199a795ef317d5433115.tar.xz
homework-167139f22e6d5258485c199a795ef317d5433115.tar.zst
homework-167139f22e6d5258485c199a795ef317d5433115.zip
E
-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