class Sieve

Defined in:

math/sieve.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size) #

[View source]

Instance Method Detail

def each_factor(x : Int, &) : Nil #

[View source]
def factor : Array(Int32) #

[View source]
def number_of_divisors(x : Int) : Int32 #

[View source]
def prime?(x : Int) : Bool #

[View source]
def prime_division(x : Int) #

[View source]
def primes : Array(Int32) #

[View source]
def size : Int32 #

[View source]
def sum_of_divisors(x : Int) : Int64 #

[View source]