class SieveFast

Defined in:

math/sieve_fast.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size) #

[View source]

Instance Method Detail

def each_factor(x : Int32, & : Int32, Int32 -> ) : Nil #

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

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

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

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

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

[View source]
def size : Int32 #

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

[View source]