Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
a.k.a. highliy composite numbers
Documentation
calculate the "size" of all possible factors of a number
>>>
import qualified AntiPrimes as AP
>>>
AP.size 12
6 -- 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 4
True>>>
AP.proof 5
False