OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..340
MATHEMATICA
Select[Prime[Range[PrimePi[20000]]], !MemberQ[PowerMod[Range[#], 18, #], Mod[2, #]] && MemberQ[PowerMod[Range[#], 6, #], Mod[2, #]]&] (* Vincenzo Librandi, Sep 21 2013 *)
PROG
(Magma) [p: p in PrimesUpTo(20000) | not exists{x: x in ResidueClassRing(p) | x^18 eq 2} and exists{x: x in ResidueClassRing(p) | x^6 eq 2}]; // Vincenzo Librandi, Sep 21 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Feb 04 2001
STATUS
approved