-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersstandard library
Description
Probably in a new package coalton-librar/math/primes
.
Implement the following new prime number routines on Integral
instances:
(prime? x)
which uses a deterministic primality test like AKS(miller-rabin-prime? n x)
which does the Miller-Rabin testn
times. Documentation should give a false-positive bound fromn
.(probable-prime? x)
which uses Miller-Rabin for a suitable defaultn
.(primes)
which returns an iterator for all primes (perhaps using techniques from here).(coprime? a b)
which checks coprimality ofa
andb
(factorize n)
which returns a sequence of prime factors ofn
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersstandard library