Meissel–Mertens constant: Difference between revisions

Content added Content deleted
(Meissel–Mertens constant in Dart)
(→‎{{header|J}}: Up precision & formatting)
Line 330: Line 330:


=={{header|J}}==
=={{header|J}}==
'''Implementation'''
<syntaxhighlight lang="j"> Euler=: 0.57721566490153286
<syntaxhighlight lang="j">Euler=: 0.57721566490153286
MM=: {{ Euler + +/ (+ ^.@-.)@% p:i. y }}
MM=: {{ Euler + +/ (+ ^.@-.)@% p: i. y }}</syntaxhighlight>
0j12 ": MM 1e7
'''Task example'''
0.261497212987</syntaxhighlight>
<syntaxhighlight lang="j"> 0j13 ": MM 1e8
0.2614972128591</syntaxhighlight>


=={{header|Julia}}==
=={{header|Julia}}==