Last active
December 8, 2022 19:31
-
-
Save twisted-nematic57/6b6af9c757459676caa30fd05d3423df to your computer and use it in GitHub Desktop.
A simple Hex-Zip test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Recursive division test by HackerDaGreat57 | |
#include <iostream> | |
int main() | |
{ | |
std::cout << "Please enter a number: "; | |
unsigned long long int input_num; | |
std::cin >> input_num; | |
std::cout << "Recieved number " << input_num << ". Now seeing what it's divisible by..." << std::endl; | |
for(unsigned long long int iter = 1; iter < 18446744073709551612U; iter++) { | |
//std::cout << "Trying number " << iter << std::endl; | |
if(input_num % iter == 0) { | |
std::cout << "Input number is divisible by " << iter << std::endl; | |
//return 1; | |
} else { | |
std::cout << "Number not divisible by " << iter << std::endl; | |
} | |
//std::cout << iter << std::endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment