OFFSET
0,17
LINKS
EXAMPLE
MATHEMATICA
a[n_] := Module[{k = n, p = 2, s = 0, r}, While[{k, r} = QuotientRemainder[k, p]; k != 0 || r != 0, If[r > 1, s++]; p = NextPrime[p]]; s]; Array[a, 100, 0] (* Amiram Eldar, Mar 13 2024 *)
PROG
(PARI) A328615(n) = { my(s=0, p=2); while(n, s += (1<(n%p)); n = n\p; p = nextprime(1+p)); (s); };
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Oct 22 2019
STATUS
approved