CalmoSoft primes: Difference between revisions
m
→{{header|Julia}}
m (→{{header|Julia}}: maked incorrect) |
|||
Line 730:
=={{header|Julia}}==
<syntaxhighlight lang="julia">using Primes
Line 741 ⟶ 740:
") of primes less than $N totals ", sum(pri[i:i+window_size]))
if window_size > 24
println(string(pri[
string(pri[i-
else
println("The sequence is: ", pri[i:i+window_size], "\n")
Line 756 ⟶ 755:
</syntaxhighlight>{{out}}
<pre>
Longest Calmo prime seq (length 21) of primes less than 100 totals 953
The sequence is: [7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89]
Longest Calmo prime seq (length 3001117) of primes less than 50000000 totals 72618848632313
[
</pre>
|