Legendre prime counting function: Difference between revisions
m
→nonrecursive method
Line 2,060:
{{trans|Nim}}
<syntaxhighlight lang="julia">
function countprimes(n)
n < 3 && return typeof(n)(n > 1)
|