OFFSET
1,2
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
with(numtheory):
a:= n-> add(i[2], i=ifactors(ithprime(n)+1)[2]):
seq(a(n), n=1..100);
MATHEMATICA
Array[Plus@@Last/@FactorInteger[Prime[ # ]+1]&, 6! ] (* Vladimir Joseph Stephan Orlovsky, Feb 28 2010 *)
PROG
(PARI) a(n) = bigomega(prime(n)+1); \\ Michel Marcus, Jan 04 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved