Guest User

Untitled

a guest
Dec 10th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. for q in [2..1000] do
  2. if not IsPrimePower(q) then
  3. continue;
  4. end if;
  5. fq:=GF(q);
  6. solutions:={x: x in (Set(fq) diff {0}) | ((x)^(-1)+(x)) eq 0};
  7. if #solutions gt 0 then
  8. print q, #solutions, solutions;
  9. end if;
  10. end for;
Add Comment
Please, Sign In to add comment