OFFSET
1,1
COMMENTS
MATHEMATICA
nn = 100; Union[Select[Range[2, nn], ! PrimeQ[#] &], Select[Prime[Range[2, PrimePi[nn]]], PrimitiveRoot[#] == 2 &]] (* T. D. Noe, Sep 19 2012 *)
PROG
(PARI) for(i=1, 100, if(isprime(i), if(znorder(Mod(2, i))!=(i-1), print1(i, ", ")), print1(i, ", "))); /* V. Raman, Sep 17 2012 */
(PARI)
is_A216846(n) = if( !isprime(n), 1, if(znorder(Mod(2, n))==n-1, 1, 0) );
for(n=3, 100, if(is_A216846(n), print1(n, ", ")));
/* Joerg Arndt, Oct 15 2012 */
CROSSREFS
KEYWORD
nonn
AUTHOR
V. Raman, Sep 17 2012
STATUS
approved