Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Rangel danielrangelmoreira

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