Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factorial ¶
Factorial returns the factorial(!) of a number (5!=1x2x3x4x5=120) https://www.mathsisfun.com/numbers/factorial.html The formula = n! = n × (n−1)!
func FindFactors ¶
FindFactors finds the factors of a number. You should be able to do some voodoo with PrimeFactors, but I'm not using that yet.
func FindNumFactors ¶
FindNumFactors finds the number of factors of a number. You should be able to do some voodoo with PrimeFactors, but I'm not using that yet.
func GetTriangularNumber ¶
GetTriangularNumber finds the Nth triangular number. Formule Triangular numbers: https://www.mathsisfun.com/algebra/triangular-numbers.html. Rule: xn = n(n+1)/2
func PrimesBelow ¶
primesBelow is a primegenerator that finds primes below a number
Types ¶
This section is empty.