OFFSET
1,2
MATHEMATICA
aQ[n_] := Plus @@ (p = FactorInteger[n][[;; , 1]]) * 2^Length[p] == PrimePi[n]; Join[{1}, Select[Range[2, 10^4], aQ]] (* Amiram Eldar, Nov 14 2019 *)
PROG
(PARI) nud(n) = 2^omega(n);
sopf(n)=fac=factor(n); s=0; for(i=1, matsize(fac)[1], s=s+fac[i, 1]); return(s);
for(n=1, 10^6, if(sopf(n)*nud(n)==primepi(n), print1(n, ", "))) \\ edited by Michel Marcus, Nov 14 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Sep 06 2001
EXTENSIONS
a(11)-a(34) from Amiram Eldar, Nov 14 2019
STATUS
approved