Copyright | (c) Eric Bailey 2020-2024 |
---|---|
License | MIT |
Maintainer | eric@ericb.me |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
See a082949
.
Synopsis
- data HybridInteger = HybridInteger (Prime Integer) (Prime Integer)
- hybridIntegerValue :: HybridInteger -> Integer
Documentation
data HybridInteger Source #
A number of the form \(p^{q}q^{p}\), with distinct primes \(p\) and \(q\).
Instances
Show HybridInteger Source # | |
Defined in Math.OEIS.HybridInteger showsPrec :: Int -> HybridInteger -> ShowS # show :: HybridInteger -> String # showList :: [HybridInteger] -> ShowS # | |
Eq HybridInteger Source # | |
Defined in Math.OEIS.HybridInteger (==) :: HybridInteger -> HybridInteger -> Bool # (/=) :: HybridInteger -> HybridInteger -> Bool # | |
Ord HybridInteger Source # | |
Defined in Math.OEIS.HybridInteger compare :: HybridInteger -> HybridInteger -> Ordering # (<) :: HybridInteger -> HybridInteger -> Bool # (<=) :: HybridInteger -> HybridInteger -> Bool # (>) :: HybridInteger -> HybridInteger -> Bool # (>=) :: HybridInteger -> HybridInteger -> Bool # max :: HybridInteger -> HybridInteger -> HybridInteger # min :: HybridInteger -> HybridInteger -> HybridInteger # |
hybridIntegerValue :: HybridInteger -> Integer Source #
The integer value of a HybridInteger
, i.e. \(p^{q}q^{p}\).