OFFSET
2,4
LINKS
Harry J. Smith, Table of n, a(n) for n = 2..1000
EXAMPLE
n = 2: pi(2) = 1, prime(2) = 3, 3 mod 1 = 0, the first term = a(2);
n = 100: pi(100) = 25, prime(100) = 541, 541 mod 25 = 16 = a(100). [corrected by Jon E. Schoenfield, Jun 18 2018]
MATHEMATICA
Table[Mod[Prime[n], PrimePi[n]], {n, 2, 100}] (* Harvey P. Dale, Nov 28 2013 *)
PROG
(PARI) { for (n=2, 1000, write("b065133.txt", n, " ", prime(n)%primepi(n)) ) } \\ Harry J. Smith, Oct 11 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 15 2001
STATUS
approved