factor-1.6: Factoring integers and polynomials
Safe HaskellSafe-Inferred
LanguageHaskell2010

Factor.Prime

Description

 

Documentation

add :: Prime -> Gfp -> Gfp -> Gfp Source #

sum :: Prime -> [Gfp] -> Gfp Source #

divide :: Prime -> Gfp -> Gfp -> Gfp Source #

uniform :: RandomGen r => Prime -> r -> (Gfp, r) Source #

uniformNonZero :: RandomGen r => Prime -> r -> (Gfp, r) Source #

isPrime :: RandomGen r => Integer -> r -> (Bool, r) Source #

nextPrime :: RandomGen r => Integer -> r -> (Prime, r) Source #

uniformPrime :: RandomGen r => Int -> r -> (Prime, r) Source #