editing
approved
editing
approved
Table[If[PrimeQ[n], Round[Log[n]], 0], {n, 200}] (* Harvey P. Dale, Nov 25 2020 *)
approved
editing
proposed
approved
editing
proposed
Antti Karttunen, <a href="/A029833/b029833.txt">Table of n, a(n) for n = 1..65539</a>
0, 1, 1, 0, 2, 0, 2, 0, 0, 0, 2, 0, 3, 0, 0, 0, 3, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 3, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 5, 0, 0, 0, 5, 0, 5, 0, 0, 0, 5, 0, 0
(PARI) A029833(n) = if(!isprime(n), 0, round(log(n))); \\ Antti Karttunen, Feb 06 2019
More terms from Antti Karttunen, Feb 06 2019
approved
editing
_N. J. A. Sloane (njas(AT)research.att.com)_.
nonn,easy,new
N. J. A. Sloane (njas(AT)research.att.com).
P. Ribenboim, Algebraic Numbers, p. 44.
P. Ribenboim, Algebraic Numbers, p. 44.
nonn,easy,new
A discrete version of the Mangoldt function: if n is prime then round(log(n)) else 0.
0,1,5
The real Mangoldt function Lambda(n) is equal to log(n) if n is prime else 0.
P. Ribenboim, Algebraic Numbers, p. 44.
T. M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, 1976, page 32.
nonn,easy,new