Template:Number-theoretic algorithms