Use imported primes.

This commit is contained in:
2025-12-04 11:24:40 +01:00
parent e17ebf47c3
commit 22fe0953ca
2 changed files with 25 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ fn main() {
println!("{}", res);
} else {
let mut cand_gen = CandidateGenerator::new();
if !primes_list.borrow().is_empty() {
cand_gen.calc_base(*primes_list.borrow().back().unwrap());
}
loop {
let cand = cand_gen.next();