Anonymous user
Jacobi symbol: Difference between revisions
Formatting
(Formatting) |
|||
Line 15:
=={{header|AWK}}==
{{trans|Go}}
<lang AWK>
# syntax: GAWK -f JACOBI_SYMBOL.AWK
BEGIN {
max_n = 29
Line 84:
29 1 -1 -1 1 1 1 1 -1 1 -1 -1 -1 1 -1 -1 1 -1 -1 -1 1 -1 1 1 1 1 -1 -1 1 0 1
</pre>
=={{header|Factor}}==
The <code>jacobi</code> word already exists in the <code>math.extras</code> vocabulary. See the implementation [https://docs.factorcode.org/content/word-jacobi%2Cmath.extras.html here].
|