Meissel–Mertens constant: Difference between revisions

m
m (→‎{{header|Raku}}: iterate over integral list)
Line 362:
};</syntaxhighlight>
{{out}}
10 valid digits, prime summation up to 10^9.
Running 10^9 summations to get 9 valid digits.
<pre>? \p10p 12
realprecision = 19 significant digits (1012 digits displayed)
? MM(1e9)
?
%1 = 0.2614972129261497212874
?
? ##
Line 391:
};</syntaxhighlight>
{{out}}
1000 valid digits. For some reason the last digit is in some rare cases (rounded) wrong. Whatever, the last digit is per definition the one with the lowest weight.
1000 valid digits.
<pre>? Meissel_Mertens(1001)
%1 = 0.26149721284764278375542683860869585905156664826119920619206421392492451089736820971414263143424665105161772887648602199778339032427004442454348740197238640666194955709392581712774774211985258807266272064144464232590023543105177232173925663229980314763831623758149059290382284758265972363422015971458785446941586825460538918007031787714156680620570605257601785334398970354507934530971953511716888598019955346947142883673537117910619342522616975101911159537244599605203558051780574237201332999961769676911386909654186249097435916294862238555389898241954857937738258646582212506260380084370067541379219020626760709633535981989783010762417792511961619355361391684002933280522289185167238258837930443067100391254985761418536020400457460311825670423438456551983202200477824746954606715454777572171338072595463648319687279859427306787306509669454587505942593547068846408425666008833035029366514525328713339609172639368543886291288200447611698748441593459920236225093315001729474600911978170842383659092665509
40

edits