Legendre prime counting function: Difference between revisions
Content added Content deleted
Line 2,060: | Line 2,060: | ||
{{trans|Nim}} |
{{trans|Nim}} |
||
<syntaxhighlight lang="julia"> |
<syntaxhighlight lang="julia"> |
||
const masks = [1, 2, 4, 8, 16, 32, 64, 128] |
|||
function countprimes(n) |
function countprimes(n) |
||
n < 3 && return typeof(n)(n > 1) |
n < 3 && return typeof(n)(n > 1) |