OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[4 * Range[10^4] + 1, CompositeQ[#] && PowerMod[2, # - 1, #] == 1 &] (* Amiram Eldar, Sep 10 2019 *)
PROG
(PARI) forstep(n=5, 10^7, 4, if(isprime(n), next()); if(Mod(2, n)^(n-1)==1, print1(n, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Joerg Arndt, Dec 30 2010
STATUS
approved