OFFSET
1,1
COMMENTS
MATHEMATICA
FQ[k_]:= Block[{}, GCD[EulerPhi[k], k-1]==1||IntegerQ[Log[3, k]]]; Select[Range[4, 170], FQ]
PROG
(PARI) is(n)=for(b=2, n-2, if(Mod(b, n)^(n-1)==1, return(0))); !isprime(n) \\ Charles R Greathouse IV, Dec 22 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Emmanuel Vantieghem, Jul 03 2013
STATUS
approved