Skip to content

Instantly share code, notes, and snippets.

View danielrangelmoreira's full-sized avatar

Daniel Rangel danielrangelmoreira

View GitHub Profile
@danielrangelmoreira
danielrangelmoreira / totients.go
Created April 23, 2017 16:25 — forked from iandioch/totients.go
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"
)