WOLFRAM

gives the Riemann prime counting function TemplateBox[{x}, RiemannR].

Details

  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • For , the Riemann prime counting function is given by TemplateBox[{x}, RiemannR]=sum_n^inftyTemplateBox[{n}, MoebiusMu] TemplateBox[{{x, ^, {(, {1, /, n}, )}}}, LogIntegral]/n.
  • RiemannR[z] has a branch cut discontinuity in the complex z plane running from to .
  • RiemannR can be evaluated to arbitrary numerical precision.
  • RiemannR automatically threads over lists.

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Evaluate numerically:

Out[1]=1
Out[2]=2

Compare the behavior of RiemannR with the prime counting function TemplateBox[{x}, PrimePi]:

Out[1]=1

Scope  (6)Survey of the scope of standard use cases

Evaluate for complex arguments:

Out[1]=1

Evaluate to high precision:

Out[1]=1

The precision of the output tracks the precision of the input:

Out[1]=1

Simple exact values are generated automatically:

Out[1]=1

RiemannR threads element-wise over lists:

Out[1]=1

TraditionalForm formatting:

Applications  (1)Sample problems that can be solved with this function

The behavior of RiemannR near the origin:

Out[1]=1

The largest root of the Riemann prime counting function, which solves a problem originally posed by Waldvogel:

Out[2]=2
Out[3]=3
Out[4]=4

The second largest root:

Out[5]=5
Wolfram Research (2008), RiemannR, Wolfram Language function, https://reference.wolfram.com/language/ref/RiemannR.html.
Wolfram Research (2008), RiemannR, Wolfram Language function, https://reference.wolfram.com/language/ref/RiemannR.html.

Text

Wolfram Research (2008), RiemannR, Wolfram Language function, https://reference.wolfram.com/language/ref/RiemannR.html.

Wolfram Research (2008), RiemannR, Wolfram Language function, https://reference.wolfram.com/language/ref/RiemannR.html.

CMS

Wolfram Language. 2008. "RiemannR." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RiemannR.html.

Wolfram Language. 2008. "RiemannR." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RiemannR.html.

APA

Wolfram Language. (2008). RiemannR. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RiemannR.html

Wolfram Language. (2008). RiemannR. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RiemannR.html

BibTeX

@misc{reference.wolfram_2025_riemannr, author="Wolfram Research", title="{RiemannR}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/RiemannR.html}", note=[Accessed: 29-March-2025 ]}

@misc{reference.wolfram_2025_riemannr, author="Wolfram Research", title="{RiemannR}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/RiemannR.html}", note=[Accessed: 29-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_riemannr, organization={Wolfram Research}, title={RiemannR}, year={2008}, url={https://reference.wolfram.com/language/ref/RiemannR.html}, note=[Accessed: 29-March-2025 ]}

@online{reference.wolfram_2025_riemannr, organization={Wolfram Research}, title={RiemannR}, year={2008}, url={https://reference.wolfram.com/language/ref/RiemannR.html}, note=[Accessed: 29-March-2025 ]}