find parts somehow
This commit is contained in:
parent
cea39cda00
commit
552bec665b
|
@ -107,6 +107,7 @@ pub fn p_minus_one(n: u128, max_prime: u128, verbose: bool) -> Result<Vec<u128>,
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
last_n = n;
|
last_n = n;
|
||||||
|
n = n / g;
|
||||||
if verbose {
|
if verbose {
|
||||||
println!("n is prime: {n}");
|
println!("n is prime: {n}");
|
||||||
println!("g is prime: {g}");
|
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) {
|
else if is_prime(g as u64) {
|
||||||
prime_parts.push(g);
|
prime_parts.push(g);
|
||||||
n = n / g;
|
|
||||||
}
|
}
|
||||||
else if is_prime(n as u64) {
|
else if is_prime(n as u64) {
|
||||||
prime_parts.push(n);
|
prime_parts.push(n);
|
||||||
n = g;
|
n = g;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
n = n / g;
|
println!("IN THE STUPID PART!!!!!!1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if verbose {
|
if verbose {
|
||||||
|
|
Loading…
Reference in New Issue