add multithreaded example
This commit is contained in:
parent
4e1e14d418
commit
8f631cb6b5
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
use powlib::{gen::{POWRange, POWChallenge}, solver::POWSolver};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let challenge = POWChallenge::make(POWRange::new(0, 20480));
|
||||||
|
let mut solver = POWSolver::new(challenge);
|
||||||
|
println!("Found {} with 8 threads", solver.solve_blocking(8, Some(|x| println!("{x}"))));
|
||||||
|
}
|
Loading…
Reference in New Issue