Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Rangel danielrangelmoreira

View GitHub Profile
@iandioch
iandioch / totients.go
Created Dec 31, 2015
Golang implementation of Euler's totient/phi function
View totients.go
/*
* 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"
)