OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Prime[Range[200]], MemberQ[{1, 2, 3, 4}, Mod[#, 5]]&] (* Vincenzo Librandi, Aug 08 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(400) | p mod 5 in [1, 2, 3, 4]]; // Vincenzo Librandi, Aug 08 2012
(PARI) a(n)=if(n>2, prime(n), n+1) \\ Charles R Greathouse IV, Jun 29 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved