Impelment CandidateGenerator.

This commit is contained in:
2025-12-04 09:38:08 +01:00
parent 2965336290
commit 0797c7419d
2 changed files with 69 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ use std::process;
use std::rc::Rc;
use structopt::StructOpt;
mod candidate;
use candidate::CandidateGenerator;
mod worker;
#[derive(StructOpt)]
@@ -76,5 +78,10 @@ fn main() {
let res = *primes_list.borrow().get(opts.num as usize).unwrap();
println!("{}", res);
} else {
let mut cand_gen = CandidateGenerator::new();
while primes_list.borrow().len() < opts.num as usize {
let cand = cand_gen.next();
}
}
}