Template:Number theoretic algorithms