How to program the Von Mangoldt function: $$\Lambda (n)=\begin{cases}\log p&{\text{if }}n=p^{k}{\text{ for some prime }}p{\text{ and integer }}k\geq 1,\\0&{\text{otherwise.}}\end{cases}$$
with PARI/GP.Thank you.
How to program the Von Mangoldt function: $$\Lambda (n)=\begin{cases}\log p&{\text{if }}n=p^{k}{\text{ for some prime }}p{\text{ and integer }}k\geq 1,\\0&{\text{otherwise.}}\end{cases}$$
with PARI/GP.Thank you.
Copyright © 2021 JogjaFile Inc.
An implementation for the function in Pari/GP:
For the exponential of Mangoldt function A014963 type: