OFFSET
1,1
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
FORMULA
Sum_k={1..n} a(k) ~ (5/2)*n. - Amiram Eldar, Dec 11 2024
MAPLE
seq(ithprime(n) mod 5, n=1..105); # Nathaniel Johnston, Jun 29 2011
MATHEMATICA
Table[Mod[Prime[n], 5], {n, 105}] (* Nathaniel Johnston, Jun 29 2011 *)
Mod[Prime[Range[100]], 5] (* Vincenzo Librandi, May 06 2014 *)
PROG
(PARI) primes(105) % 5 \\ Zak Seidov, Apr 09 2013
(Magma) [p mod 5: p in PrimesUpTo(500)]; // Vincenzo Librandi, May 06 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved