OFFSET
1,6
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
PROG
(PARI) pi(x, c) = forprime(p=2, x, c++); c d(n) = prime(n+1)-prime(n) for(n=1, 200, print1(sigma(n)-d(n)-pi(n), " "))
(PARI) { for (n=1, 1000, a=sigma(n) - (prime(n + 1) - prime(n)) - primepi(n); write("b064677.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 21 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Oct 09 2001
STATUS
approved