New answers tagged

0 votes

How does the square end?

Prolog (SWI), 49 bytes N+X:-setof(K,A^(between(0,N,A),K is A^2mod N),X). Try it online! Creates a set of values from K=(A^2)%N, ...
  • 46.4k

Top 50 recent answers are included