rename functions
This commit is contained in:
@@ -17,9 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package sieve
|
||||
|
||||
/*
|
||||
MobiusSieve computes mobius(k) for k=1 to n, where mobius is the Mobius function.
|
||||
Mobius computes mobius(k) for k=1 to n, where mobius is the Mobius function.
|
||||
*/
|
||||
func MobiusSieve(n uint, buflen uint) chan int {
|
||||
func Mobius(n uint, buflen uint) chan int {
|
||||
sieve := make([]int, n)
|
||||
for i := 0; i < int(n); i++ {
|
||||
sieve[i] = i
|
||||
|
||||
Reference in New Issue
Block a user