From 167139f22e6d5258485c199a795ef317d5433115 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 9 Apr 2019 14:57:42 -0500 Subject: E --- misc/test.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 misc/test.cpp 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 -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 -- cgit v1.2.3