Additive primes: Difference between revisions
m
→{{header|Rust}}: syntaxhighlight lang="rust"
Thundergnat (talk | contribs) m (Automated syntax highlighting fixup (second round - minor fixes)) |
m (→{{header|Rust}}: syntaxhighlight lang="rust") |
||
Line 2,988:
===Flat implementation===
<syntaxhighlight lang="
let limit = 500;
let column_w = limit.to_string().len() + 1;
Line 3,020:
primal implements the sieve of Eratosthenes with optimizations (10+ times faster for large limits)
<syntaxhighlight lang="
// primal = "0.3.0"
|