One-two primes: Difference between revisions

Content added Content deleted
(Added Quackery.)
m (→‎{{header|Quackery}}: simplified code)
Line 687: Line 687:
<code>prime</code> is defined at [[Miller–Rabin primality test#Quackery]].
<code>prime</code> is defined at [[Miller–Rabin primality test#Quackery]].


<syntaxhighlight lang="Quackery"> [ temp put
<syntaxhighlight lang="Quackery"> [ -1 swap
-1
dup temp put
2 temp share ** times
bit times
[ [] i^
[ [] i^
temp share times
temp share times