OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p=Prime[n]; If[Mod[p, 13]==8, AppendTo[lst, p]], {n, 7!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 26 2009 *)
Select[Prime@Range[600], MemberQ[{8}, Mod[#, 13]] &] (* Vincenzo Librandi, Aug 14 2012 *)
Select[Range[8, 4000, 13], PrimeQ] (* Bruno Berselli, Aug 17 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(4500) | p mod 13 eq 8 ]; // Vincenzo Librandi, Aug 14 2012
(PARI) is(n)=isprime(n) && n%13==8 \\ Charles R Greathouse IV, Jul 01 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jun Mizuki (suzuki32(AT)sanken.osaka-u.ac.jp), Apr 01 2004
EXTENSIONS
More terms from Pab Ter (pabrlos(AT)yahoo.com), May 25 2004
STATUS
approved