Skip to content

Instantly share code, notes, and snippets.

@HackerDaGreat57
Last active December 8, 2022 19:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HackerDaGreat57/6b6af9c757459676caa30fd05d3423df to your computer and use it in GitHub Desktop.
Save HackerDaGreat57/6b6af9c757459676caa30fd05d3423df to your computer and use it in GitHub Desktop.
A simple Hex-Zip test
//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