Skip to content

Instantly share code, notes, and snippets.

View danielrangelmoreira's full-sized avatar

Daniel Rangel danielrangelmoreira

View GitHub Profile
@iandioch
iandioch / totients.go
Created December 31, 2015 02:28
Golang implementation of Euler's totient/phi function
/*
* Go implementation of Euler's product formula to find for the totient function (aka. phi function)
* https://en.wikipedia.org/wiki/Euler's_totient_function#Euler.27s_product_formula
*/
package main
import (
"fmt"
)