OFFSET
1,1
COMMENTS
Prime factors are counted with multiplicity. - Sean A. Irvine, Feb 07 2022
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5)=47 because starting with the 5th prime, 11: 11+11=22; 22+2+11=35; 35+5+7=47, a prime.
MATHEMATICA
f[n_] := n + Plus @@ Times @@@ FactorInteger@n; a[n_] := NestWhile[f, (p = Prime[n]), # == p || CompositeQ[#] &]; Array[a, 100] (* Amiram Eldar, Sep 07 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Enoch Haga, Apr 11 2000
EXTENSIONS
Corrected by Jud McCranie, Jan 04 2001
STATUS
approved