OFFSET
1,2
COMMENTS
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
PROG
(PARI) Composite(n) = { my(k=n + primepi(n) + 1); while (k != n + primepi(k) + 1, k = n + primepi(k) + 1); return(k) }
{ for (n=1, 100, my(f=factor(n), a=1); for (i=1, matsize(f)[1], a*=Composite(primepi(f[i, 1]))^f[i, 2]); a=gcd(n, a); print1(a, ", ") ) } \\ Harry J. Smith, Feb 07 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 10 2001
STATUS
approved