OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
ok[p_] := Reduce[Mod[x^22 + 2, p] == 0, x, Integers] == False; Select[Prime[Range[100]], ok]
PROG
(Magma) [p: p in PrimesUpTo(600) | forall{x: x in ResidueClassRing(p) | x^22 ne -2}]; // Bruno Berselli, Sep 20 2012
(PARI) select(x->!ispower(Mod(-2, x), 22), primes(100)) \\ Michel Marcus, Mar 19 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Sep 15 2012
STATUS
approved