OFFSET
2,6
LINKS
Harry J. Smith, Table of n, a(n) for n = 2..1000
EXAMPLE
n=100, c(100)=133, pi(100)=25, a(100)=8 because 133 = 5*25 + 8.
PROG
(PARI) Composite(n) = { local(k); k=n + primepi(n) + 1; while (k != n + primepi(k) + 1, k = n + primepi(k) + 1); return(k) } { for (n = 2, 1000, a=Composite(n)%primepi(n); write("b065861.txt", n, " ", a) ) } \\ Harry J. Smith, Nov 02 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 26 2001
STATUS
approved