···11+22+# Rust 3x+1
33+44+Simple tool to bruteforce 3x+1 for a second loop. Only takes positive numbers.
55+66+77+## Usage
88+99+```bash
1010+USAGE:
1111+ rust-3xp1.exe [OPTIONS]
1212+1313+OPTIONS:
1414+ -c, --count <COUNT> Number of times to try [default: 50000]
1515+ -d, --double-verbose Weather to output current number every step of 3x+1
1616+ -h, --help Print help information
1717+ -s, --start <START> Number to start at [default: 195147905179352825856]
1818+ -v, --verbose Weather to output current number each time
1919+ -V, --version Print version information
2020+```
2121+2222+2323+## Demo
2424+2525+
2626+## FAQ
2727+2828+#### What is 3x+1?
2929+3030+check out [this](https://youtu.be/094y1Z2wpJg) viceo by Veritasium
3131+3232+#### Why?
3333+3434+This hasn't left my brain since I saw the video, I wanted to mess around with a tool to brute force for a new loop.
3535+
+2-2
src/main.rs
···44use tracing_subscriber;
55use clap::Parser;
6677-/// Simple program to greet a person
77+/// Simple tool to bruteforce 3x+1 for a second loop. Only takes positive numbers
88#[derive(Parser, Debug)]
99#[clap(author, version, about, long_about = None)]
1010struct Args {
···3636 event!(Level::INFO, "Starting number: {}", args.start);
3737 event!(Level::INFO, "Amount of numbers to try: {}", args.count);
38383939- if args.verbose{
3939+ if args.verbose & !args.double_verbose{
4040 for current_num in args.start..max_num{
4141 event!(Level::INFO, "Processing {}", current_num);
4242 let (smallest_num, largest_num) = txpo(current_num);