Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
arithmatic
main
Arithmatic
Factorization
Int32
Numbers
InvalidRationalInitializationException
Rational
PowerProduct
PrimesRepo
Utils
Built with Crystal 1.9.2
2023-10-07 16:28:25 UTC
module
Factorization
Defined in:
factorization.cr
Class Method Summary
.pairs
(n : Int32) : Array(Tuple(Int32, Int32))
TODO
handle negative inputs?
.prime
(n : Int32)
.prime
(r : Rational)
Class Method Detail
def self.
pairs
(n :
Int32
) : Array(Tuple(
Int32
,
Int32
))
#
TODO
handle negative inputs?
[
View source
]
def self.
prime
(n :
Int32
)
#
[
View source
]
def self.
prime
(r :
Rational
)
#
[
View source
]