find parts somehow

This commit is contained in:
Christoph J. Scherr 2023-05-13 21:27:53 +02:00
parent cea39cda00
commit 552bec665b
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
1 changed files with 2 additions and 2 deletions

View File

@ -107,6 +107,7 @@ pub fn p_minus_one(n: u128, max_prime: u128, verbose: bool) -> Result<Vec<u128>,
}
else {
last_n = n;
n = n / g;
if verbose {
println!("n is prime: {n}");
println!("g is prime: {g}");
@ -119,14 +120,13 @@ pub fn p_minus_one(n: u128, max_prime: u128, verbose: bool) -> Result<Vec<u128>,
}
else if is_prime(g as u64) {
prime_parts.push(g);
n = n / g;
}
else if is_prime(n as u64) {
prime_parts.push(n);
n = g;
}
else {
n = n / g;
println!("IN THE STUPID PART!!!!!!1");
}
}
if verbose {