module PrimesRepo

Defined in:

primes.cr

Class Method Summary

Macro Summary

Class Method Detail

def self.cache_size #

[View source]
def self.cache_stopper #

[View source]
def self.get_closest_primes(n : Int32) : Tuple(Int32, Int32, Int32) | Nil #

[View source]
def self.get_nth_prime(n) #

[View source]
def self.get_primes_in_index_range(start : Int32, finish : Int32) #

[View source]
def self.get_primes_in_range(n1 : Int32, n2 : Int32) #

[View source]
def self.get_primes_upto(n : Int32) : Array(Int32) #

[View source]
def self.prime?(n : Int32) #

[View source]

Macro Detail

macro gen_primes(n) #

[View source]