Copyright | Copyright (C) 2021 Yoo Chung |
---|---|
License | GPL-3.0-or-later |
Maintainer | dev@chungyc.org |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Some solutions to Problems.P36 of Ninety-Nine Haskell Problems.
Synopsis
- primeFactorsMultiplicity :: Integral a => a -> [(a, a)]
Documentation
primeFactorsMultiplicity :: Integral a => a -> [(a, a)] Source #
Determine the prime factors of a given positive integer. Construct a list containing the prime factors and their multiplicity.