Sha256: a77cf59a4dd7dc6ea7e234c79f68076d1894b7c0afd557d88dd563c4e39d0105
Contents?: true
Size: 659 Bytes
Versions: 9
Compression:
Stored size: 659 Bytes
Contents
extension Integer (Prime) # Iterates the given block over all prime numbers. # # See Prime#each for more details. # def self.each_prime: (Integer) { (Integer) -> void } -> void # Re-composes a prime factorization and returns the product. # # See Prime#int_from_prime_division for more details. # def self.from_prime_division: (Array[[ String ]]) -> Integer # Returns the factorization of `self`. # # See Prime#prime_division for more details. # def prime_division: (?Prime::PseudoPrimeGenerator) -> Array[[ Integer, Integer ]] # Returns true if `self` is a prime number, else returns false. # def prime?: () -> bool end
Version data entries
9 entries across 9 versions & 2 rubygems