OFFSET
1,1
COMMENTS
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000 (first 1000 terms from Vincenzo Librandi)
MAPLE
select(isprime, map(t -> op([1, 2, 5, 7] + t*[8, 8, 8, 8]), [$0..100])); # Robert Israel, Sep 12 2014
MATHEMATICA
Select[Prime[Range[300]], MemberQ[{1, 2, 5, 7}, Mod[#, 8]]&] (* Vincenzo Librandi, Aug 07 2012 *)
PROG
(Magma) [ p: p in PrimesUpTo(1000) | p mod 8 in {1, 2, 5, 7} ]; // Vincenzo Librandi, Aug 07 2012
(PARI) isok(n)=isprime(n) && n%8%3 != 0 \\ Edward Jiang, Sep 09 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved