Meissel–Mertens constant: Difference between revisions
Removed duplicate entry and fixed syntax highlighting.
(Added Wren) |
(Removed duplicate entry and fixed syntax highlighting.) |
||
Line 65:
{{libheader|Wren-fmt}}
Wren's only native number type is a 64 bit float (15 or 16 digits accuracy) and it appears from the following results that, no matter how many primes we use, we're not going to be able to improve on 8 digit accuracy for M with this particular number type.
<
import "./fmt" for Fmt
Line 80:
c = c + 1
if ((c % 1e7) == 0 || c == pc) Fmt.print("$,11d $0.12f", c, sum + euler)
}</
{{out}}
|