OFFSET
1,2
COMMENTS
No further terms < 800000. - Klaus Brockhaus, Oct 05 2001
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..42 (terms < 2*10^12).
MATHEMATICA
sopf[n_] := If[n==1, 0, Total[First /@ FactorInteger[n]]]; Select[Range[10^4], PrimePi@ # == sopf@ # &] (* Giovanni Resta, Mar 28 2017 *)
PROG
(PARI) pi(x, c=0) = forprime(p=2, x, c++); c sopf(n, fac) = fac=factor(n); sum(i=1, matsize(fac)[1], fac[i, 1]) j=[]; for(n=1, 25000, if(pi(n)==sopf(n), j=concat(j, n))); j
(PARI) sopf(n)= { local(f, s=0); f=factor(n); for(i=1, matsize(f)[1], s+=f[i, 1]); return(s) } { n=0; for (m=1, 10^9, if (primepi(m)==sopf(m), write("b064444.txt", n++, " ", m); if (n==100, break)) ) } \\ Harry J. Smith, Sep 14 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Oct 02 2001
EXTENSIONS
More terms from Klaus Brockhaus, Oct 05 2001
a(27)-a(29) from Harry J. Smith, Sep 14 2009
a(30)-a(38) from Giovanni Resta, Mar 28 2017
STATUS
approved