Consecutive primes with ascending or descending differences: Difference between revisions
Consecutive primes with ascending or descending differences (view source)
Revision as of 15:28, 5 April 2021
, 3 years agoMinor edit to Rust code
m (fix) |
m (Minor edit to Rust code) |
||
Line 589:
// primal = "0.3"
fn print_diffs(vec:
for i in 0..vec.len() {
if i > 0 {
Line 638:
println!("Longest run(s) of ascending prime gaps up to {}:", limit);
for v in max_asc {
print_diffs(&v);
}
println!("\nLongest run(s) of descending prime gaps up to {}:", limit);
for v in max_desc {
print_diffs(&v);
}
}</lang>
|