dtison / euler-utils-go

Golang Package of Utilities for Solving Project Euler Problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

euler-utils-go

Golang Package of Utilities and Tools for Solving Project Euler Problems

Project Euler Official Site

There are no solutions here, only helper functions.

This is a work in progress, and is a personal interest project. What is written in here is made to create fast-running solutions. There are some things that could be organized better, or commented better, etc. If you find anything lacking, Pull Requests are welcome.

I am new to the Golang ecosphere, but am learning much, using Project Euler problems.

After doing several of the Euler problems, you find several standard functions are reused frequently.

This package has functions to generate Prime numbers, find Prime factors, Pandigital functions, GCD, Palindrome tests, Factorial, and more.

If you are working on Project Euler in Go, these will help you. In here you will find the raw materials with which to do these problems.

Dependencies

This package uses (https://github.com/yourbasic/bit) because it was blazing-fast.

TODO's

Testing

Tests should be done. I have not had a chance to write tests for these.

The tests so far are these functions get correct answers to the problems on Project Euler.

So far, I have completed over 50 of them.

Parallel Execution

Some of these might be optimized to use multiple CPU cores using goroutines and channels.

More Detailed Documentation

About

Golang Package of Utilities for Solving Project Euler Problems

License:GNU General Public License v3.0


Languages

Language:Go 99.8%Language:Shell 0.2%