Equal prime and composite sums: Difference between revisions

m
Line 35:
<lang julia>using Primes
 
function getsequencematches(N, masksize = 10_000_000_0001_000_000_000)
pmask = primesmask(masksize)
found, psum, csum, pindex, cindex, pcount, ccount = 0, 2, 4, 2, 4, 1, 1
Line 73:
Primes up to 86254457 at position 5012372 and composites up to 21123471 at position 19786181 sum to 209456854921713.
Primes up to 390180569 at position 20840220 and composites up to 91491160 at position 86192660 sum to 3950430820867201.
7244.974740526876 seconds (1.09 G allocations: 1916.829546 GiB, 03.7713% gc time)
</pre>
 
4,102

edits