Jump to content

Additive primes: Difference between revisions

m
m (→‎{{header|Rust}}: using rust v 1.58.0 features in print!() and println!())
Line 2,657:
let mut pms = Vec::with_capacity(limit / 2 - limit / 3 / 2 - limit / 5 / 3 / 2 + 1);
let column_width = limit.to_string().len() + 1;
print!("{:1column_width$}", 2, column_width);
let mut count = 1;
for u in (3..limit).step_by(2) {
Line 2,688:
Found 54 additive primes less than 500
</pre>
 
 
===With crate "primal"===
106

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.