CalmoSoft primes: Difference between revisions

Content added Content deleted
Line 336: Line 336:
if isprime(sum(pri[i:i+window_size]))
if isprime(sum(pri[i:i+window_size]))
println("Longest Calmo prime seq (length ", window_size + 1,
println("Longest Calmo prime seq (length ", window_size + 1,
") of primes less than 100 totals ", sum(pri[i:i+window_size]))
") of primes less than $N totals ", sum(pri[i:i+window_size]))
showsequence && println("The sequence is: ", pri[i:i+window_size])
showsequence && println("The sequence is: ", pri[i:i+window_size])
return
return
Line 350: Line 350:
Longest Calmo prime seq (length 21) of primes less than 100 totals 953
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]
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 100 totals 72618848632313
Longest Calmo prime seq (length 3001117) of primes less than 50000000 totals 72618848632313
</pre>
</pre>