OFFSET
1,4
COMMENTS
k > 1: a(k*2) = 2, as all even numbers > 2 are marked by 2; for all primes p: a(p^k) = p and a(i) < p for i < p^2.
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
PROG
(PARI) { for (n=1, 1000, if (n==1, p=1, if (isprime(n), p=0, p=1; until (n%p == 0, p=nextprime(p + 1)))); write("b063918.txt", n, " ", p) ) } \\ Harry J. Smith, Sep 02 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Sep 04 2001
STATUS
approved