OFFSET
2,5
LINKS
Andrew Howroyd, Table of n, a(n) for n = 2..1000
MATHEMATICA
Table[(1/2)(n - First@(First/@FactorInteger[n])), {n, 2, 100}] (* Vincenzo Librandi, Apr 08 2020 *)
PROG
(PARI) a(n)={if(n==1, 0, my(f=factor(n)[, 1]); (n-f[1])/2)} \\ Andrew Howroyd, Mar 07 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved