| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
AntiPrimes
Description
a.k.a. highliy composite numbers
Documentation
calculate the "size" of all possible factors of a number
>>>import qualified AntiPrimes as AP>>>AP.size 126 -- as [1,2,3,4,6,12] are possible
dividers :: Nui -> [Int] Source #
calculate all possible dividers of a number
>>>import qualified AntiPrimes as AP>>>AP.dividers 12[1,2,3,4,6,12]
proof if a number is an antiprime
>>>import qualified AntiPrimes as AP>>>AP.proof 4True>>>AP.proof 5False