All Projects → nathaneastwood → euler

nathaneastwood / euler

Licence: MIT license
A package to offer R solutions to Project Euler problems

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to euler

c-code-katas
Collection of short programs, data structures, algorithms and competitive programs implemented in C programming language.
Stars: ✭ 20 (-4.76%)
Mutual labels:  project-euler
projecteuler-solutions
Numerical answers to all Project Euler problems
Stars: ✭ 255 (+1114.29%)
Mutual labels:  project-euler
EasyEuler
A command line tool for Project Euler
Stars: ✭ 29 (+38.1%)
Mutual labels:  project-euler
AlgoDaily
just for fun
Stars: ✭ 118 (+461.9%)
Mutual labels:  project-euler
polyglot-euler
📜 Project Euler solutions in various programming languages
Stars: ✭ 69 (+228.57%)
Mutual labels:  project-euler
loleuler
SOLVING PROJEZZ EULER PROBLEMZ IN LOLCODE!! (Project Euler solutions in LOLCODE)
Stars: ✭ 16 (-23.81%)
Mutual labels:  project-euler
Competitive Coding
Contains Solution for all type of Problems of Competitive Programming. Updates Frequently as any problem is solved.
Stars: ✭ 16 (-23.81%)
Mutual labels:  project-euler
solutions
Solutions to online programming problems
Stars: ✭ 36 (+71.43%)
Mutual labels:  project-euler
Algorithm-Implementations
Lots of algorithm's & their implementations that have been compiled from a variety of locations.
Stars: ✭ 15 (-28.57%)
Mutual labels:  project-euler
playground
A place to play programming
Stars: ✭ 21 (+0%)
Mutual labels:  project-euler

euler

Project Status: Active - The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge Travis-CI Build Status codecov License: MIT

Overview

The goal of euler is to offer R solutions to Project Euler problems.

Installation

You can install the package directly from GitHub using the devtools package.

# install.packages("devtools")
install_github("nathaneastwood/euler")

Useage

We can, for example, solve Euler problem 3 using the following:

euler_3(600851475143)
[1] 6857

Or we could solve Euler problem 4 using the following:

euler_4(3)
[1] 906609

Problems solved so far

This package currently offers solutions to the following Euler problems:

Click to expand

Explaining Methodology

You will notice that our code has minimal comments and that we haven’t provided any detail to how we came up with our solutions. We believe that in doing so, we would be taking away the fun for others. We came to this decision because of the nature of Project Euler. Take this excerpt from there website.

I learned so much solving problem XXX so is it okay to publish my solution elsewhere?

It appears that you have answered your own question. There is nothing quite like that “Aha!” moment when you finally beat a problem which you have been working on for some time. It is often through the best of intentions in wishing to share our insights so that others can enjoy that moment too. Sadly, however, that will not be the case for your readers. Real learning is an active process and seeing how it is done is a long way from experiencing that epiphany of discovery. Please do not deny others what you have so richly valued yourself.

We do, however, plan on writing about more general content aimed at solving maths problems (e.g. efficient code solutions for finding primes) in R, if not linked to specific problems.

Contributing

Bug reports, suggestions, and especially code contributions are welcome. Please see CONTRIBUTING.md. Maintainers and contributors must follow this repository’s code of conduct.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].